// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.bname.value)) {
		Warning(objForm.bname , "Please specify your Booking Name");
		return false;
		} else if ( IsEmpty(objForm.gname.value)) {
		Warning(objForm.gname , "Please specify your Name of Guest");
		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 ( IsEmpty(objForm.person.value)) {
		Warning(objForm.person , "Please specify your Number of Persons");
		return false;
	} else if ( IsEmpty(objForm.room.value)) {
		Warning(objForm.room , "Please specify your Number of Rooms");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	