function validate()
{
x=document.form_feedback;
name = x.name.value;
email = x.email.value;
subject = x.subject.value;
message = x.body.value;
org = x.org.value;

if (name.length<1)
{alert("Please enter your name.");
return false;
}
if (org.length<1)
{alert("Please enter your company or organization.");
return false;
}
if (email.length<1)
{alert("Please enter an email address where you can be contacted.");
return false;
}
if (email.length>0)
{
//Validates an Email Address
 			var teststr = email;
  			var iserr=false;
			  if (!teststr=='')
			  { 
				  // there must be >= 1 character before @, so we
				  // start looking at character position 1 
				  // (i.e. second character)
				  var i = 1;
				  var sLength = teststr.length;
				  // look for @
				  while ((i < sLength) && (teststr.charAt(i) != "@"))
				  { 
					 i++;
				  }
				  if ((i >= sLength) || (teststr.charAt(i) != "@")) 
				  {
					 iserr=true;
				  }
				  else 
				  {
					 i += 2;
					 // look for "."
					 while ((i < sLength) && (teststr.charAt(i) != "."))
					 { 
						i++;
					 }
					 // there must be at least one character after the "."
					 if ((i >= sLength - 1) || (teststr.charAt(i) != ".")) 
					 {
						iserr = true;
					 }
				  }
			   }
			   if (iserr)
			   {
				  alert('You have entered an invalid email address.');
				  return (false);				  
			   }
}
if (subject.length<1)
{alert("Please enter the subject");
return false;
}
if (message.length<1)
{alert("You forgot the message!");
return false;
}
return true;
}