function getDate(withTime)
{
	if (navigator.userAgent.indexOf("Firefox") == -1)
	{
		myMonth = new Array();
		myMonth[0] = "January";
		myMonth[1] = "February";
		myMonth[2] = "March";
		myMonth[3] = "April";
		myMonth[4] = "May";
		myMonth[5] = "June";
		myMonth[6] = "July";
		myMonth[7] = "August";
		myMonth[8] = "September";
		myMonth[9] = "October";
		myMonth[10] = "November";
		myMonth[11] = "December";
		myDate = new Date();
		myYear = myDate.getYear();
		myHour = myDate.getHours();
		myMins = myDate.getMinutes();
		if (myYear < 2000)
		{
			myYear = 1900 + myYear;
		}
		document.write (myDate.getDate() + " " + myMonth[myDate.getMonth()] + " " + myYear);
		if (withTime == 1)
		{
			if (myMins <= 9)
			{
				myMins = "0" + myMins;
			}
			document.write (" " + myHour + ":" + myMins);
		}
	}
}

function openDocWindow(url)
{
	var dWide = 700;
	var dHigh = 600;
	if (screen.width < 1024)
	{
		dWide = 600;
		dHigh = 450;
	}
	var xPos = (screen.width - dWide) / 2;
	var yPos = (screen.height - dHigh) / 2;
	docWindow = window.open(url,"docWindow","width="+dWide+",height="+dHigh+",left="+xPos+",top="+yPos+",screenX="+xPos+",screenY="+yPos+",scrollbars");
	docWindow.focus();
}

function openCSRWindow()
{
	var xPos = (screen.width - 800) / 2;
	var yPos = (screen.height - 600) / 2;
	CSRWindow = window.open("CustomerService.htm", "CSRWindow","width=800,height=600,left="+xPos+",top="+yPos+",screenX="+xPos+",screenY="+yPos+",scrollbars");
	CSRWindow.focus();
}

function eml(nam,dom,suf)
{
	var lnk = 'mail';
	lnk += 'to:';lnk += nam;lnk += '@';
	lnk += dom;lnk += '.';lnk += suf;
	window.location = lnk;
}
