// 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 on card");
		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.address.value)) {
		Warning(objForm.address , "Please specify your Address");
		return false;
	} else if ( IsEmpty(objForm.City_State.value)) {
		Warning(objForm.City_State , "Please specify your City / State");
		return false;
	} else if ( IsEmpty(objForm.Country.value)) {
		Warning(objForm.Country , "Please specify your Country");
		return false;
	} else if ( IsEmpty(objForm.Amount.value)) {
		Warning(objForm.Amount , "Please specify your Amount");
		return false;
	} else if ( IsEmpty(objForm.Card_Number.value)) {
		Warning(objForm.Card_Number , "Please specify your Card Number");
		return false;
	} else if ( IsEmpty(objForm.Valid_Month.value)) {
		Warning(objForm.Valid_Month , "Please specify your Valid Until");
		return false;
	} else if ( IsEmpty(objForm.password.value)) {
		Warning(objForm.password , "Please specify your Validate Code");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	