function check_email(e)
{

ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";


for(i=0; i < e.length ;i++)
	
{

	if(ok.indexOf(e.charAt(i))<0)
		
	{
		
	return (false);

	}
	
}



if (document.images)
	
{
		
	re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		
	re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		
	if (!e.match(re) && e.match(re_two))
			
	{
			
		return (-1);
			
	}
	
}


}




function ValidateEntries()

{
	
	if(!check_email(document.formNL1.ea.value))
		
	{
		
	alert("Your email address is invalid.  It must be in the form of yourname@domain.com");

	document.formNL1.ea.focus();
		
	return;
	}
	
	else
		
	{

	    
	popcc=window.open("","myNewWin","width=1,height=1,toolbar=0");
		
	window.focus();
		
	document.formNL1.loginName.value="brianew";
		
	document.formNL1.loginPassword.value="amoils1";
		
	document.formNL2.email.value="healing@amoils.com"
;	
	document.formNL2.recipient.value=document.formNL1.ea.value;
			document.formNL2.name.value=document.formNL1.First_Name.value;
	    
	document.formNL1.submit();
		
	var a = window.setTimeout("popcc.close();",4000);
	    
	var b = window.setTimeout("document.formNL2.submit();",5000);
		
	}

}

