// 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 E-mail");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your E-mail in the right format");
		return false;
} else if ( IsEmpty(objForm.phone.value)) {
		Warning(objForm.phone , "Please specify your Telephone number");
		return false;
		} else if ( IsEmpty(objForm.cardholder.value)) {
		Warning(objForm.cardholder , "Please specify your Cardholder Name");
		return false;
		} else if ( IsEmpty(objForm.card_number.value)) {
		Warning(objForm.card_number , "Please specify your Credit Card Number");
		return false;
		} else if ( IsEmpty(objForm.CCType.value)) {
		Warning(objForm.CCType , "Please specify your Credit Card Type");
		return false;
		} else if ( IsEmpty(objForm.CCExpMonth.value)) {
		Warning(objForm.CCExpMonth , "Please specify Month");
		return false;
		} else if ( IsEmpty(objForm.CCExpYear.value)) {
		Warning(objForm.CCExpYear , "Please specify Year");
		return false;
		} else if ( IsEmpty(objForm.zip.value)) {
		Warning(objForm.zip , "Please specify your Zip Code");
		return false;
		} else if ( IsEmpty(objForm.digit_card.value)) {
		Warning(objForm.digit_card , "Please specify your 3 digit code on back of card");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;


	}
}	