function isBlank (InString) {
	if (InString==null) return (!false)
	if (InString.length!=0)
		return (!true);
	else
		return (!false);
}

function EMailCheck(form) {
        Ctrl = form.email;
        if (Ctrl.value == "" || Ctrl.value.indexOf ('@', 0) == -1) {
                    return (false);
        } else
                return (true);
}

function isAlphaNumericString (InString)  {
	if(InString.length==0)
		return (false);
	InString=InString.toLowerCase ()
	RefString="abcdefghijklmnopqrstuvwxyz1234567890";
	for (Count=0; Count < InString.length; Count++)  {
		TempChar= InString.substring(Count, Count+1);
	if (RefString.indexOf(TempChar, 0)==-1) 
		return (false);
}
return (true);
}
	
	
function loadDoc() {
	document.EmployerLogin.email.focus ();
	return;
}
	
function VerifyData()
{	

	if (isBlank(document.EmployerLogin.email.value))
	{	
		document.EmployerLogin.email.focus();
		alert ("You must enter an E-Mail Address.");
		return (false); 
	}
	
	
	if (! EMailCheck(document.EmployerLogin))
	{
		document.EmployerLogin.email.focus();
		alert ("You must enter a valid E-Mail Address.");
		return (false);
	}
	
	
	if (document.EmployerLogin.email.value.length < 5)
	{	
		document.EmployerLogin.email.focus();
		alert ("You must enter a valid E-Mail Address.");
		return (false);
	}
			
	
	if (isBlank(document.EmployerLogin.Password.value))
	{	
		document.EmployerLogin.Password.focus();
		alert ("You must enter your Password.");
		return (false); 
	}


	if (! isAlphaNumericString(document.EmployerLogin.Password.value))
	{	
		document.EmployerLogin.Password.focus();
		document.EmployerLogin.Password.select();
		alert ("Your Password must only contain numbers and letters.");
		return (false); 
	}

}
