<!-- //
// commonly used Java Script functions
function getCookie (name)
{
	var search = name + "=";
	if( document.cookie.length > 0){
		offset = document.cookie.indexOf(search);
		if(offset != -1) {
			offset += search.length;
			end = document.cookie.indexOf(";", offset)
			if( end == -1) {
				end = document.cookie.length;
			}
			return unescape(document.cookie.substring(offset, end));
	      }
	}
	return "";
}
function DisplayIDPass (formName, custName, passName)
{
	if (document.forms[formName])
	{
		if ((passPort = getCookie("OSA_ID")).length > 0)
		{
			if (document.forms[formName].elements[custName])
			{
				document.forms[formName].elements[custName].value = passPort.substring(0,6);
			}
			if (document.forms[formName].elements[passName])
			{
				document.forms[formName].elements[passName].value = "CookieMonster";
			}
		}
		if ((passPortEmail = getCookie("OSA_Email")).length > 0)
		{
			if (document.forms[formName].elements["EnterEmail"])
				document.forms[formName].elements["EnterEmail"].value = passPortEmail;
		}
	}
}
function SetRefCatgCookie (catg) {
	document.cookie= "referred_category=" + catg + "; path=/";
}

//-->