function back()
{
	//history.back();
}

function top()
{		
	window.location = "#top";	
}

function CheckFormSubmit()
{
	return true;
}

function GetNewWindow(strURL, strTarget)
{	
	if(strTarget == "_NEW")
	{ 
		window.open(strURL);
	}
	else
	{
		window.open(strURL,'',"width="+(screen.width-7)+",height="+(screen.height-100)+",scrollbars=yes,resizable=yes,fullscreen=yes,top=0,left=0");
	}
}
function clickButton(e, ImageButton1){ 
      var bt = document.getElementById(ImageButton1); 
      if (typeof bt == 'object'){ 
            if(navigator.appName.indexOf("Netscape")>(-1)){ 
                  if (e.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
            if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                  if (event.keyCode == 13){ 
                        bt.click(); 
                        return false; 
                  } 
            } 
      } 
} 
function detectAdobeAcrobatVersion()
{
	
		var acrobat=new Object();

		// Set some base values
		acrobat.installed=false;
		acrobat.version='0';

		if (navigator.plugins && navigator.plugins.length)
		{
			for (x=0; x<navigator.plugins.length; x++)
			{
				if (navigator.plugins[x].description.indexOf('Adobe Acrobat') != -1)
				{
					acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);

					if (acrobat.version.toString().length == 1) acrobat.version;

					acrobat.installed=true;
					break;
				}
			}
		}
		else if (window.ActiveXObject)
		{
			for (x=2; x<10; x++)
			{
				try
				{
					oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
					if (oAcro)
					{
						acrobat.installed=true;
						acrobat.version=x;
					}
				}
				catch(e) {}
			}
			
			try
			{
				oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
				if (oAcro4)
				{
					acrobat.installed=true;
					acrobat.version='4';
				}
			}
			catch(e) {}
			try
			{
				oAcro7=new ActiveXObject('AcroPDF.PDF.1');
				if (oAcro7)
				{
					acrobat.installed=true;
					acrobat.version='7';
				}
			}
			catch(e) {}
		}
		/*if(acrobat.version >= 4)
		{
			var objDiv = document
		}*/
	if(document.getElementById("hdnAcrobatVersion").value=="")
	{
		document.getElementById("hdnAcrobatVersion").value = acrobat.version;
		var browserAgent = navigator.userAgent.toUpperCase();
		if(browserAgent.indexOf("NETSCAPE")!=-1 || browserAgent.indexOf("FIREFOX")!=-1 || browserAgent.indexOf("OPERA")!=-1 || browserAgent.indexOf("SAFARI")!=-1)
			window.document.frmdetectAcrobat.submit();
		else
			window.frmdetectAcrobat.submit();
	}
	document.getElementById("hdnAcrobatVersion").value = acrobat.version;
}
