<!--
function openWindow(doc)
{
	popupWin = window.open(doc,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,titlebar=yes,status=yes,scrollbars=yes,resizable=yes');
}

function today()
{
	var dayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	// Array of month Names
	var monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	var now = new Date();
	var today = document.write(dayNames[now.getDay()] + " " + monthNames[now.getMonth()] + " " + now.getDate() + " - " + now.getFullYear());
	return today;
}

function pdfcheck()
{
	var requiredAcrobatVersion = 5;
	var url = 'inc/mainspec.php?m=installpdf';
	var upgradeAcrobatURL  = url;
	var noAcrobatURL  = url;
	var dontKnowAcrobatVersionURL = url;
	function getAcrobatVersion()
	{
		var agent = navigator.userAgent.toLowerCase(); 
		if(navigator.plugins != null && navigator.plugins.length > 0)
		{
			for(i=0; i < navigator.plugins.length; i++ )
			{
				var plugin = navigator.plugins[i];
				if(plugin.name.indexOf("Adobe Acrobat") > -1)
				{
					acrobatVersion = parseFloat(plugin.description.substring(30));
				}
			}
		}
   
		// IE4+ Win32:  attempt to create an ActiveX object using VBScript
		else if(agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1)
		{
			document.write('<scr' + 'ipt language="VBScript"\> \n');
			document.write('on error resume next \n');
			document.write('dim obAcrobat \n');
			document.write('set obAcrobat = CreateObject("PDF.PdfCtrl.5") \n');
			document.write('if IsObject(obAcrobat) then \n');
			document.write('acrobatVersion = 5 \n');
			document.write('else set obAcrobat = CreateObject("PDF.PdfCtrl.1") end if \n');
			document.write('if acrobatVersion < 5 and IsObject(obAcrobat) then \n');
			document.write('acrobatVersion = 4 \n');
			document.write('end if');
			document.write('</scr' + 'ipt\> \n');
		}

		// Can't detect in all other cases
		else
		{
			acrobatVersion = 'sdfhuysd';
		}
		return acrobatVersion;
	}
	function openWindow2(doc)
	{
		var popupwin = window.open(doc,'_blank','width=250,height=70');
	}
	var acrobatver = getAcrobatVersion();


	// use acrobat_detect.js to return the Acrobat version
	// Redirect to appropriate page
	if(acrobatver >= requiredAcrobatVersion)
	{
	}
	else if(acrobatver > 0)
	{
		openWindow2(upgradeAcrobatURL);
	}
	else if(acrobatver == 0)
	{
		openWindow2(noAcrobatURL);
	}
	else if(acrobatver == null)
	{
		openWindow2(dontKnowAcrobatVersionURL);
	}
}

function checkform(form,namesStr)
{
	namesArr = namesStr.split(",");
	i = 0;
	while(i < namesArr.length)
	{
		namesArrV = namesArr[i].split(":");
		if(form.elements[namesArrV[0]].value == "")
		{
			alert("please enter your " + namesArrV[1]);
			form.elements[namesArrV[0]].focus();
			return false;
		}
		i++
	}
	return true ;
} 
-->