function questionmvcheck()
{
 if(document.question.name.value.length < 1) 
	{
	alert("กรุณากรอกชื่อ");
	document.question.name.focus();
	return false;
	}
	 if(document.question.lastname.value.length < 1)
	{
	alert("กรุณากรอกนามสกุล");
	document.question.lastname.focus();
	return false;
	}	
	 if(document.question.birthdayDate.value.length < 1)
	{
	alert("กรุณาลือกวันเกิด");
	document.question.birthdayDate.focus();
	return false;
	}	
	if(document.question.birthdayDay.value.length < 1)
	{
	alert("กรุณาลือกวันที่เกิด");
	document.question.birthdayDay.focus();
	return false;
	}	
	 if(document.question.birthdayMonth.value.length < 1)
	{
	alert("กรุณาลือกเดือนเกิด");
	document.question.birthdayMonth.focus();
	return false;
	}	
	 if(document.question.yearbirth.value.length < 1)
	{
	alert("กรุณาลือกปีเกิด");
	document.question.yearbirth.focus();
	return false;
	}	
	 if(document.question.timehour.value.length < 1)
	{
	alert("กรุณาลือกชั่วโมงที่คุณเกิด");
	document.question.timehour.focus();
	return false;
	}	
	if(document.question.timemin.value.length < 1)
	{
	alert("กรุณาลือกนาทีที่เกิด");
	document.question.timemin.focus();
	return false;
	}	
	 if(document.question.gender.value.length < 1)
	{
	alert("กรุณาลือกเพศของคุณ");
	document.question.gender.focus();
	return false;
	}	
	 if(document.question.adress.value.length < 1)
	{
	alert("กรุณาลือกจังหวัดที่คุณอยู่");
	document.question.adress.focus();
	return false;
	}	

 if(document.question.email.value.indexOf('@',0) == -1 || document.question.email.value.indexOf('.',0) == -1)
	{
		alert("กรุณากรอกอีเมลให้ถูกต้องเช่นabc@hotmail.com");
		document.question.email.focus();
		return false;
	}
	 if(document.question.phone.value.length < 9 ||document.question.phone.value.length >10)
	{
	alert("กรุณากรอกหมายเลขโทรศัพท์เพื่อใช้ในการติดต่อกลับค่ะ");
	document.question.phone.focus();
	return false;
	}	
	
	if(document.question.questiontext.value =="")
	{
	alert("กรุณากรอกคำถาม");
	document.question.questiontext.focus();
	return false;
	}
}