	function feedback_Validator(theForm)
{

  if (theForm.name.value =="")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }
  
  

  
  
    if (theForm.Name.value =="")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.phone.focus();
    return (false);
  }
  
   //  if (theForm.company.value =="")
  //{
    //alert("Please enter a value for the \"company\" field.");
    //theForm.company.focus();
    //return (false);
 // }
  
//   if (theForm.phone.value =="")
//   {
//     alert("Please enter a value for the \"phone\" field.");
//     theForm.phone.focus();
//     return (false);
//   }
//   
//   
//   if (theForm.fax.value =="")
//   {
//     alert("Please enter a value for the \"fax\" field.");
//     theForm.fax.focus();
//     return (false);
//   }
  
    if (theForm.email.value =="")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (!chk(theForm.email.value))
  {
    theForm.email.focus();
    return (false);
  }
  
    
   if (theForm.query.value =="")
  {
    alert("Please enter a value for the \"query\" field.");
    theForm.query.focus();
    return (false);
  }
  
  }
	
	
	
	function chk(Email)
	{
	invalid = "";
	
	if (!Email)
	{
		invalid = "No email address found!  Try reloading the page then use the 'email a script' feature again.";
		alert(invalid);
		return (false);
	}
	else {
	
	if ((Email.indexOf("@") == -1) || (Email.indexOf(".") == -1))
		invalid += "\n\nInvalid email address.  Your email address is missing an '@' sign and a '.' in the domain name (like '.com').  Please check your address then submit again.";
	
	if (Email.indexOf("Email") > -1)
		invalid += "\n\nInvalid email address.  Make sure your email address included your username, the '@' sign, and the domain name (like '.com').";
	
	if (Email.indexOf("\\") > -1)
		invalid += "\n\nEmail address contains an invalid back-slash (\\) character.  Remove the character and submit again.";
	
	if (Email.indexOf("/") > -1)
		invalid += "\n\nEmail address contains an invalid forward-slash (/) character.  Remove the character and submit again.";
	
	if (Email.indexOf("'") > -1)
		invalid += "\n\nEmail address contains an invalid apostrophe (') character.  Remove the character and submit again.";
	
	if (Email.indexOf("zaz.com.br") > -1)
		invalid += "\n\nPlease do not use an email address that has an autoresponder set up for it.  Thanks.";
	
	if (Email.indexOf("!") > -1)
		invalid += "\n\nEmail address contains an invalid exclamation point (!) character.  Remove the character or correct the email address then submit again.";
	
	if ( (Email.indexOf(",") > -1) || (Email.indexOf(";") > -1) )
		invalid += "\n\nPlease only enter one email address in the box at a time.  Remove the extra addresses and submit again.";
	
	if (Email.indexOf("?subject") > -1)
		invalid += "\n\nPlease do not add '?subject=...' to your email address.  Scriptbot will send you the script with a pre-defined subject already.  Please remove the '?subject=...' from your email address and submit again.";
		if(invalid){
		alert(invalid);
		return(false);
		}else{
			return (true);
		}
	}
	}
	function strblank(str1)
	{
		if (str1.charAt(0)==' ')                  
		{
			errstr1="can not be Left Blank"
			return false
		}
		if (str1.charAt(str1.length-1)==' ')                  
		{
			errstr1="can not be Right Blank"
			return false
		}
		return true;
	}

