/**
 * @author wayne
 */
function validate_form(thisform)
		{
			if (thisform.question.value=="")
			{
				alert ("Oops,you forgot your question!");
				thisform.question.focus();
				return false;
			}
			if (thisform.name.value=="")
			{
				alert ("Oops,you forgot your name!");
				thisform.name.focus();
				return false;
			}
			if (thisform.school.value=="")
			{
				alert ("Oops,you forgot your school!");
				thisform.school.focus();
				return false;
			}
			if (thisform.email.value=="")
			{
				alert ("Oops,you forgot your email!");
				thisform.email.focus();
				return false;
			}
			else if(validate_email(thisform.email)==false)
			{
				thisform.email.focus();
				return false;
			}
			else{
				return true;}
			
		}
		function validate_email(field)
		{
			with (field)
			{
				//note that email address must not start with @ or .must not follow by @;
				apos=value.indexOf("@");
				dotpos=value.lastIndexOf(".");
				if (apos<1||dotpos-apos<2) 
  					{alert("Please enter a correct email!");return false;}
				else {return true;}
			}
		}