function submitQuickPayment(num) {
	var f = document.forms[0];
	var sError = "";
	
	//	Check cvv code
	if (f.c_cvvcode.value == "") { sError = "Please enter your credit card's 3 digit CVV2 number."; }

	//	Check credit card number
	if (f.c_ccardnumber.value == "") { sError = "Please enter your credit card number."; }

	//	Check expire year
	if (f.c_s_year.value == "") { sError = "Please enter the expiration year for your credit card."; }

	//	Check expire month
	if (f.c_s_month.value == "") { sError = "Please enter the expiration month for your credit card."; }
	
	//	Check credit card type
	if (f.c_cctype.value == "") { sError = "Please enter the type of credit card you are using."; }
	
	//	Check phone
	if (f.c_phone.value == "") { sError = "Please enter your phone number."; }
	
	//	Check email
	if (f.c_email.value == "" || f.c_email.value.indexOf("@") == -1 || f.c_email.value.indexOf(".") == -1) { sError = "Please provide a valid email address"; }
	
	//	Check country
	if (f.c_country.value == "") { sError = "Please enter the billing address country for your credit card."; }

	//	Check zipcode
	if (f.c_zipcode.value == "") { sError = "Please enter the billing address zipcode for your credit card."; }

	//	Check state
	if (f.c_state.value == "") { sError = "Please enter the billing address state for your credit card."; }

	//	Check city
	if (f.c_city.value == "") { sError = "Please enter the billing address city for your credit card."; }

	//	Check address
	if (f.c_add_1.value == "") { sError = "Please enter the billing address for your credit card."; }

	//	Check names
	if (f.f_name.value == "" || f.l_name.value == "") { sError = "Please provide your both your first and your last name."; }

	//	Check amount
	if (f.c_cc_amt.value == "") { sError = "Please enter the amount you wish to pay."; }

	//	Check amount > 0
	if ((parseFloat(f.c_cc_amt.value) == 0) || (parseFloat(f.c_cc_amt.value) < 0) ) { sError = "Please enter the amount you wish to pay."; }

	if (sError.length > 0) {
		alert(sError);
		return false;
	} else {
		document.forms[0].submit();
	}
}


function requestAccount(num) {
	var f = document.forms[0];
	var sError = "";
	
	
	//	Check phone
	if (f.c_phone.value == "") { sError = "Please enter your phone number."; }
	
	//	Check email
	if (f.c_email.value == "" || f.c_email.value.indexOf("@") == -1 || f.c_email.value.indexOf(".") == -1) { sError = "Please provide a valid email address"; }
	
	//	Check country
	if (f.c_country.value == "") { sError = "Please enter your billing address country."; }

	//	Check zipcode
	if (f.c_zipcode.value == "") { sError = "Please enter your billing address zipcode."; }

	//	Check state
	if (f.c_state.value == "") { sError = "Please enter your billing address state."; }

	//	Check city
	if (f.c_city.value == "") { sError = "Please enter your billing address city."; }

	//	Check address
	if (f.c_add_1.value == "") { sError = "Please enter your billing address."; }

	//	Check names
	if (f.f_name.value == "" || f.l_name.value == "") { sError = "Please provide your both your first and your last name."; }


	if (sError.length > 0) {
		alert(sError);
		return false;
	} else {
		document.forms[0].submit();
	}
}


function submitAcctEdits(num) {
	var f = document.forms[0];
	var sError = "";
	
	
	//	Check phone
	if (f.c_phone.value == "") { sError = "Please enter a phone number."; }
	
	//	Check email
	if (f.c_email.value == "" || f.c_email.value.indexOf("@") == -1 || f.c_email.value.indexOf(".") == -1) { sError = "Please provide a valid email address"; }
	
	//	Check country
	if (f.c_country.value == "") { sError = "Please enter your billing address country."; }

	//	Check zipcode
	if (f.c_zipcode.value == "") { sError = "Please enter your billing address zipcode."; }

	//	Check state
	if (f.c_state.value == "") { sError = "Please enter your billing address state."; }

	//	Check city
	if (f.c_city.value == "") { sError = "Please enter your billing address city."; }

	//	Check address
	if (f.c_add_1.value == "") { sError = "Please enter your billing address."; }

	//	Check names
	if (f.f_name.value == "" || f.l_name.value == "") { sError = "Please provide your both your first and your last name."; }


	if (sError.length > 0) {
		alert(sError);
		return false;
	} else {
		document.forms[0].submit();
	}
}

