// JavaScript Document
function verify() 
{
	if (document.frm.frommail.value == "" ) 
	{
		alert("Please Enter Your Mail Address");
		document.frm.frommail.focus();
		//document.frm.action = "referralfriend.php?ERRORCODE=errprocess";
		return false;
	}
	if (!isEmail(document.frm.frommail.value) ) 
	{
		alert("Please Enter Proper Mail Address");
		document.frm.frommail.focus();
		//document.frm.action = "referralfriend.php?ERRORCODE=errprocess";
		return false;
	}
	if (document.frm.fromname.value == "" ) 
	{
		alert("Please Enter your Name");
		document.frm.fromname.focus();
		//document.frm.action = "referralfriend.php?ERRORCODE=errprocess";
		return false;
	}
	
	if (document.frm.tomail.value =="")
	{
		alert("Please Enter Friend's Email Address");
		document.frm.tomail.focus();
		//document.frm.action = "referralfriend.php?ERRORCODE=errprocess";
		return false;
	}
	if (!isEmail(document.frm.tomail.value))
	{
		alert("Please Enter Proper Friend's Email Address");
		document.frm.tomail.focus();
		//document.frm.action = "referralfriend.php?ERRORCODE=errprocess";
		return false;
	}
	
	document.frm.submit();
	return true;				
}

