// JavaScript Document
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.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address in the right format");
		return false;
	} else if ( IsEmpty(objForm.tel.value)) {
		Warning(objForm.tel , "Please specify your Phone Number");
		return false;
	} else if ( objForm.room.value==0) {
		Warning(objForm.room , "Please select your Type of Room");
		return false;
	} else if ( objForm.noof.value==0) {
		Warning(objForm.noof , "Please select your NO. of Room");
		return false;
	} else if ( IsEmpty(objForm.people.value)) {
		Warning(objForm.people , "Please specify your No. of People");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	