var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/ivar today = new Date();var expires = new Date();expires.setTime(today.getTime() + 1000*60*60*24*365);//-----------------------------------------------------------function checkmail(e){	var returnval=emailfilter.test(e.value);	return returnval;}//-----------------------------------------------------------function thisLocation(){	var strLocationTmp = new String(window.location);	var strLocation = strLocationTmp.toLowerCase();	var str1 = new String(window.location.protocol + "//" + window.location.host + "/");	var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)) + "/");	return str1 + str2;}//-----------------------------------------------------------function setCookie(name, value, expire){  var cstr = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString())) + ";path=" + "/";  document.cookie = cstr;}//-----------------------------------------------------------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));    }  }}//-----------------------------------------------------------