    


function Feedback_Validator(theForm){


  if(theForm.Comment.value == '')
  {
    alert("Please enter your comment.");
    theForm.Comment.focus();
    return (false);
  }
  
   if(theForm.Email.value == 'Email')
  {
    alert("Please enter your Email.");
	theForm.Email.value == ''    
    theForm.Email.focus();
    return (false);
  }
  
  if(theForm.Email.value == '')
  {
    alert("Please enter your Email.");
    theForm.Email.focus();
    return (false);
  }
  

   if(theForm.Name.value == 'Name')
  {
    alert("Please enter your Name.");
	theForm.Name.value == ''    
    theForm.Name.focus();
    return (false);
  }
  
   if(theForm.Name.value == '')
  {
    alert("Please enter your Name.");
    theForm.Name.focus();
    return (false);
  }



    
var checkData = theForm.Comment.value;
var Field = "Comment";

if (checkData != "")
{
	var resp = allowLettersNumbers(checkData, Field)
	if (resp == 0)
	{
	theForm.Comment.focus();
    return (false);
	}
		
}    
        
    
var checkData = theForm.Name.value;
var Field = "Name";

if (checkData != "")
{
	var resp = allowLettersNumbers(checkData, Field)
	if (resp == 0)
	{
	theForm.Name.value = "";
	theForm.Name.focus();
    return (false);
	}
		
}




  var checkOK = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@-_. \t\r\n\f";
  var checkStr = theForm.Email.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only letter, digit and @-_. characters in your Email.");
    theForm.Email.focus();
    return (false);
  }       
  



 
  
}


