var errMsg="";
function CheckRegisterPage()
{

	if(chkSpace(document.EntryForm.fname)=="")
		errMsg+="First Name\n";
	if(chkSpace(document.EntryForm.lname)=="")
		errMsg+="Last Name\n";
	if(chkSpace(document.EntryForm.address)=="")
		errMsg+="Address\n";		
	if(chkSpace(document.EntryForm.email)!="")
	{
		if(checkEmail(document.EntryForm.email.value)==0)
			errMsg+="Invalid Email Address\n";
	}
	else
		errMsg+="Email Address\n";
		
	if(chkSpace(document.EntryForm.password)=="")
		errMsg+="Password\n";				

	if(errMsg=="")
	{
		document.EntryForm.method="post";
		document.EntryForm.action=arguments[0];
		document.EntryForm.submit();
	}

	else
	{
	  alert("Please complete the following fields\n__________________\n"+errMsg)
	  errMsg="";
	}
}


/*---------------------------------------------------------------*/

