// JavaScript Document
	function validate_email(field,alerttxt)
	{
	with (field)
	{
	apos=value.indexOf("@")
	dotpos=value.lastIndexOf(".")
	if (apos<1||dotpos-apos<2) 
	  {alert(alerttxt);return false}
	else {return true}
	}
	}

	function validate_form(thisform)
	{
	with (thisform)
	{
		alert(email);
		if (email==""||email=null) {
			return false; 
		} else {
	
		if (validate_email(email,"'.$lang_notvalidemail.'")==false)
		  {email.focus();return false}
		}
	}
	}