// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the Submit Form button already");
		return false;
	} else if ( IsEmpty(objForm.cust_lname.value)) {
		Warning(objForm.cust_lname , "Please specify your Last Name");
		return false;
	} else if ( IsEmpty(objForm.cust_fname.value)) {
		Warning(objForm.cust_fname , "Please specify your  First Name");
		return false;
	} else if ( IsEmpty(objForm.cust_email.value)) {
		Warning(objForm.cust_email ,"Please specify your E-mail address");
		return false;
	} else if ( ! IsEmail(objForm.cust_email.value)) {
		Warning(objForm.cust_email ,"Please specify your E-mail address in the right format");
		return false;	
	} else if ( IsEmpty(objForm.amount.value)) {
		Warning(objForm.amount , "Please specify your Totel amount due");
		return false;		
	} else if ( IsEmpty(objForm.cust_address1.value)) {
		Warning(objForm.cust_address1 , "Please specify your Address");
		return false;
	} else if ( IsEmpty(objForm.cust_city.value)) {
		Warning(objForm.cust_city , "Please specify your City");
		return false;		
	} else if ( IsEmpty(objForm.cust_zip.value)) {
		Warning(objForm.cust_zip , "Please specify your Zip code");
		return false;		
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	