/**
 * This function is used by the upgrade page for sexsearchcom.net.  It controls the option buttons that
 * are used by that page for selecting your payment type.  It was added to avoid a code change to the 
 * datingengine request action upgrade_c.php.  A hidden feild is used to fake the submit buttons that would
 * normally be used on this page.
 */
function submitUpgradeForm( )
{
	var paymentType = document.getElementById( "hdnPaymentType" );
	var pmtType = jQuery('[name*=radPaymentType]');
	paymentType.name = "sub_submit";
	
	if (pmtType.length > 1) pmtType = jQuery('[name*=radPaymentType]:checked');
	

	switch (pmtType.val()) {
		case 'CC':
		case 'MO':
		case 'DB': paymentType.name .= pmtType.val(); break;
		case 'CH': paymentType.name .= "CA"; break;
		default: return false;
	}
	
	document.frm_upgrade.submit( );
}
