// 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.lname.value)) {
		Warning(objForm.lname , "Please specify your Last 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.by.value)) {
		Warning(objForm.by , "Please specify Date required By");
		return false;
	}  else if ( IsEmpty(objForm.wknow.value)) {
		Warning(objForm.wknow , "Please specify Where did you hear about Giftopia");
		return false;
	}  else if ( IsEmpty(objForm.enquiry.value)) {
		Warning(objForm.enquiry , "Please specify your Enquiry");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	