//Function for setting the cookie
function setCookie(name) 
{
	
	var quickexpdate = new Date();
	quickexpdate.setTime(quickexpdate.getTime() + 1*60*60*1000); //for one hour
    document.cookie = name + "=On;expires=" + quickexpdate.toGMTString();
}

//Function to get the cookie
function getCookie(name) 
{
   var index = document.cookie.indexOf(name + "=");
   if (index == -1) return null;
      index = document.cookie.indexOf("=", index) + 1;
   var endstr = document.cookie.indexOf(";", index);
   if (endstr == -1) endstr = document.cookie.length;
      return unescape(document.cookie.substring(index, endstr));
}

//checks for the existance of the cookie
//Requires goNewWin, getCookie, setCookie
function CheckCook(name)
{
	if(!getCookie(name)) 
	{
		setCookie(name);
		goNewWin();
	}
}


function mailForm(formName) {
   if(formName.email_address.value == "Enter Email Address")
      formName.email_address.value = "";
   }
