function pdf(show)
{
 for (var i=0; i < navigator.plugins.length; i++)
 {
  if(navigator.plugins[i].name == "Adobe Acrobat" || navigator.plugins[i].name == "Adobe PDF Plug-in")
  {
   i = navigator.plugins.length + 1;
   return true;
  }
 }

 if (window.ActiveXObject)
 {
  var control = null;
  try
  {
   // AcroPDF.PDF is used by version 7 and later
   control = new ActiveXObject('AcroPDF.PDF');
  } 
  catch (e) 
  {
   // Do nothing
  }
  if (!control) 
  {
   try
   {
    // PDF.PdfCtrl is used by version 6 and earlier
    control = new ActiveXObject('PDF.PdfCtrl');
   }
   catch (e) 
   {
    // Do nothing
   }
  }
  if (control) 
  {
   return true;
  }
 }

return false;
}

function pdf2(image,show,year)
{
 var installed = show.toUpperCase() + year + ".pdf";
 alert(installed);

 for (var i=0; i < navigator.plugins.length; i++)
 {
  if(navigator.plugins[i].name == "Adobe Acrobat" || navigator.plugins[i].name == "Adobe PDF Plug-in")
  {
   i = navigator.plugins.length + 1;
   installed = "register.php";
  }
 }

 if (window.ActiveXObject)
 {
  var control = null;
  try
  {
   // AcroPDF.PDF is used by version 7 and later
   control = new ActiveXObject('AcroPDF.PDF');
  } 
  catch (e) 
  {
   // Do nothing
  }
  if (!control) 
  {
   try
   {
    // PDF.PdfCtrl is used by version 6 and earlier
    control = new ActiveXObject('PDF.PdfCtrl');
   }
   catch (e) 
   {
    return;
   }
  }
  if (control) 
  {
   installed = register.php;
  }
 }

document.writeln("<a href=\"https://www.condorregistration.net/"+show.toLowerCase()+"/" + installed +"\" onMouseOver=\"document."+image+".src='pics/"+image+"2.gif'\" onmouseout=\"document."+image+".src='pics/"+image+".gif'\"><img src=\"pics/"+image+".gif\" border=0 name=\""+image+"\" alt=\"Load Registration Form\"></a>");
}