// JavaScript Document boat
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.name.value)) {
		Warning(objForm.name , "Please specify your Name");
		return false;
	} else if ( IsEmpty(objForm.surename.value)) {
		Warning(objForm.surename , "Please specify your Family Name");
		return false;
	} else if ( IsEmpty(objForm.mobile.value)) {
		Warning(objForm.mobile , "Please specify your Mobile Number");
		return false;
	} else if ( IsEmpty(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your E-mail Address");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your E-mail Address in the right format");
		return false;
	} else if ( objForm.boat.value=="0") {
		Warning(objForm.boat , "Please specify Boat ");
		return false;
	} else if ( objForm.arrive.value=="Click Calendar") {
		Warning(objForm.arrive , "Please specify select Date");
		return false;
	} else if ( IsEmpty(objForm.hotel.value)) {
		Warning(objForm.hotel , "Please specify The Hotel,you expect to stay in Phuket");
		return false;
	} else if ( IsEmpty(objForm.password.value)) {
		Warning(objForm.password , "Please specify your Visual verification");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	

