// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.cname.value)) {
		Warning(objForm.cname , "Please specify your Name");
		return false;
	}  else if ( objForm.bank.value=="0") {
		Warning(objForm.bank ,"Please specify your Bank");
		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.codeid.value)) {
		Warning(objForm.codeid , "Please specify your Order id");
		return false;
	} else if ( IsEmpty(objForm.cdate.value)) {
		Warning(objForm.cdate , "Please specify your Date and Times");
		return false;
	} else if ( IsEmpty(objForm.total.value)) {
		Warning(objForm.total , "Please specify your Pay");
		return false;
	}  else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	
