// This script is only used for basic credit card orders, (ie. Memberships)
// (No 'Ship To' Address and only a single product item.)
function ValidateSimpleCCOrder(form, SecCodeRequired) {
	if (!ValidateCC(form, SecCodeRequired)) { return false; }

	// Validate BillTo Information
	if (!ValidateText(form.trx_BPhone, 'Are you sure you do not wish to enter a BillTo Phone for this Order?','P')) { return false; }
	if (!ValidateText(form.trx_BAddress, 'Please enter a Billing Address.','Y')) { return false; }
	//if (!ValidateText(form.trx_BAddress2, 'Please enter a valid BillTo Address2 for this Order.','Y')) { return false; }
	if (!ValidateText(form.trx_BCity, 'Please enter a City for your Billing Address.','Y')) { return false; }
	if (form.trx_BCountry && form.trx_BCountry.value == 'United States') {
		if (!ValidateSelect(form.trx_BState, 'Please select a State for your Billing Address.','Y')) { return false; }
	}
	if (!ValidateText(form.trx_BZip, 'Please enter a Zip Code for your Billing Address.','Y')) { return false; }
	if (!ValidateSelect(form.trx_BCountry, 'Please select a Country for your Billing Address.','Y')) { return false; }

	return true;
}


// This script is only used for basic orders, (ie. Memberships)
// (No 'Ship To' Address and only a single product item.)
function ValidateSimpleCheckOrder(form) {

	if (!ValidateInt(form.trx_BankNum, 'Please enter your Bank Routing Number.','Y')) { return false; }
	if (!ValidateSelect(form.trx_AccountType, 'Please select a Bank Acount Type.','Y')) { return false; }
	if (!ValidateText(form.trx_NameOnPayment, 'Please enter the Name as it appears on this Bank Account.','Y')) { return false; }
	if (!ValidateInt(form.trx_BankAcctNum, 'Please enter your Bank Account Number.','Y')) { return false; }
	
	// Validate BillTo Information
	if (!ValidateText(form.trx_BPhone, 'Are you sure you do not wish to enter a BillTo Phone for this Order?','P')) { return false; }
	if (!ValidateText(form.trx_BAddress, 'Please enter a Credit Card Billing Address.','Y')) { return false; }
	//if (!ValidateText(form.trx_BAddress2, 'Please enter a valid BillTo Address2 for this Order.','Y')) { return false; }
	if (!ValidateText(form.trx_BCity, 'Please enter a City for your Credit Card Billing Address.','Y')) { return false; }
	if (form.trx_BCountry && form.trx_BCountry.value == 'United States') {
		if (!ValidateSelect(form.trx_BState, 'Please select a State for your Credit Card Billing Address.','Y')) { return false; }
	}
	if (!ValidateText(form.trx_BZip, 'Please enter a Zip Code for your Credit Card Billing Address.','Y')) { return false; }
	if (!ValidateSelect(form.trx_BCountry, 'Please select a Country for your Credit Card Billing Address.','Y')) { return false; }

	return true;
}


