function isEmpty(strfield1, strfield2) {

strfield1 = document.forms[0].Name.value 
strfield2 = document.forms[0].Phone.value

    if (strfield1 == "" || strfield1 == null || !isNaN(strfield1) || strfield1.charAt(0) == ' ')
    {
    alert("A Name Is A Required")
    return false;
    }

	if (strfield2 == "" || strfield2 == null || strfield2.charAt(0) == ' ')
    {
    alert("A Phone Number Is A Required")
    return false;
    }
    return true;
}

function isValidEmail(strEmail){
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  strEmail = document.forms[0].Email.value;

    if (strEmail.search(validRegExp) == -1) 
   {
      alert('Please Enter A Valid Email Address');
      return false;
    } 
    return true; 
}

function check(form){
if (isEmpty(form.Name)){
  if (isEmpty(form.Phone)){
	if (isValidEmail(form.Email)){
		  return true; 
		  	  }
		  	}
		  }

return false;
}


