 
function getBrowser() 
{
	browser= navigator.appName;
	version = navigator.appVersion;
	accept = version.substring(0, 1);
	if ( (browser == "Netscape") && ( accept >= 3 ) ) return 1;
	if ( (browser == "Microsoft Internet Explorer") && ( accept >= 4) ) return 1;
	return 0;
}

function isEmpty(s)
{   
	return ((s == null) || (s.length == 0))
}

function verify(f)
{
	if (getBrowser()){
		txt=f.email.value;
		if(isEmpty(txt))
		{
			alert("Please enter your email address.");
			f.email.focus();
			return false;
		}
		if ((txt.indexOf("@")<=0) || (txt.indexOf(".@")>=0))
		{
			alert("The email address you have provided seems wrong. Please"
			+" check the prefix and '@' sign, making sure there is not a dot immediately before the '@' symbol.");
			f.email.focus();
			return false;
		}
		if ((txt.indexOf("@.")>=0))
		{
			alert("The email address you have provided seems wrong. Please"
			+" check the prefix, making sure there is not a dot immediately after the '@' symbol.");
			f.email.focus();
			return false;
		}
		if ((txt.indexOf(" ")>=0))
			{
			alert("The email address you have provided for yourself seems wrong. Make sure there are no spaces in the address.");
			f.email.focus();
			return false;
			}
		if ((txt.lastIndexOf(".")) < (txt.indexOf("@")))
		{
			alert("The email address you have provided seems wrong. Please"
			+" check the suffix for accuracy. (It should include a "
			+".com, .edu, .net, .org, .gov, .mil, or similar)");
			f.email.focus();
			return false;
   		}
		if((f.pass1.value == '')) 
		{
			alert("Please enter a password."); 
			f.pass1.focus();
			return false;
		}
	return true;
	}
}


