<?PHP
// gets the delimit value or name depending on $which
// $which == 0 == name
// $which == 1 == symbol
function get_delimit($delimit, $which)
	{
	if ($which==1)
		{
		if ($delimit=="pipe") { return "|"; }
		else if ($delimit=="tab") { return "	"; }
		else if ($delimit=="comma") { return ","; }
		else if ($delimit=="colon") { return ":"; }
		else if ($delimit=="semicolon") { return ";"; }
		else if ($delimit=="fslash") { return "/"; }
		else if ($delimit=="bslash") { return "\""; }
		else if ($delimit=="dash") { return "-"; }
		else if ($delimit=="star") { return "*"; }
		else { return $delimit; }
		}
	else if ($which==0)
		{
		if ($delimit=="pipe") { return 1; }
		else if ($delimit=="tab") { return 1; }
		else if ($delimit=="comma") { return 1; }
		else if ($delimit=="colon") { return 1; }
		else if ($delimit=="semicolon") { return 1; }
		else if ($delimit=="fslash") { return 1; }
		else if ($delimit=="bslash") { return 1; }
		else if ($delimit=="dash") { return 1; }
		else if ($delimit=="star") { return 1; }
		else { return 0; }
		}
	}

// gets the capsule value or name depending on $which
// $which == 0 == name
// $which == 1 == symbol
function get_capsule($capsule, $which)
	{
	if ($which==1)
		{
		if ($capsule=="none") { return ""; }
		else if ($capsule=="single") { return "'"; }
		else if ($capsule=="double") { return "\""; }
		else { return $capsule; }
		}
	else if ($which==0)
		{
		if ($capsule=="none") { return 1; }
		else if ($capsule=="single") { return 1; }
		else if ($capsule=="double") { return 1; }
		else { return 0; }
		}
	}

function authnet_field_order($i, $input_style, $explode, $select_order)
	{
	$x=$i-1;
	return ("
		<select name='select_order[$i]' ".$input_style.">
			<option value='0'".(($explode[$x]=="0")?" selected":"").">Exclude</option>
			<option value='3'".(($explode[$x]=="3")?" selected":"").">Amount</option>
			<option value='6'".(($explode[$x]=="6")?" selected":"").">Authorization Code</option>
			<option value='12'".(($explode[$x]=="12")?" selected":"").">Bank ABA Routing Code</option>
			<option value='10'".(($explode[$x]=="10")?" selected":"").">Bank Account Number</option>
			<option value='11'".(($explode[$x]=="11")?" selected":"").">Bank Account Type</option>
			<option value='13'".(($explode[$x]=="13")?" selected":"").">Bank Name</option>
			<option value='52'".(($explode[$x]=="52")?" selected":"").">Card Code</option>
			<option value='9'".(($explode[$x]=="9")?" selected":"").">Credit Card Expiration Date</option>
			<option value='8'".(($explode[$x]=="8")?" selected":"").">Credit Card Number</option>
			<option value='39'".(($explode[$x]=="39")?" selected":"").">Currency Code</option>
			<option value='18'".(($explode[$x]=="18")?" selected":"").">Customer Address</option>
			<option value='19'".(($explode[$x]=="19")?" selected":"").">Customer City</option>
			<option value='17'".(($explode[$x]=="17")?" selected":"").">Customer Company</option>
			<option value='22'".(($explode[$x]=="22")?" selected":"").">Customer Country</option>
			<option value='25'".(($explode[$x]=="25")?" selected":"").">Customer E-Mail</option>
			<option value='24'".(($explode[$x]=="24")?" selected":"").">Customer Fax</option>
			<option value='15'".(($explode[$x]=="15")?" selected":"").">Customer First Name</option>
			<option value='14'".(($explode[$x]=="14")?" selected":"").">Customer ID</option>
			<option value='45'".(($explode[$x]=="45")?" selected":"").">Customer IP Address</option>
			<option value='16'".(($explode[$x]=="16")?" selected":"").">Customer Last Name</option>
			<option value='23'".(($explode[$x]=="23")?" selected":"").">Customer Phone</option>
			<option value='20'".(($explode[$x]=="20")?" selected":"").">Customer State</option>
			<option value='46'".(($explode[$x]=="46")?" selected":"").">Customer TaxID/SSN</option>
			<option value='47'".(($explode[$x]=="47")?" selected":"").">Customer Type</option>
			<option value='21'".(($explode[$x]=="21")?" selected":"").">Customer Zip</option>
			<option value='2'".(($explode[$x]=="2")?" selected":"").">Description</option>
			<option value='50'".(($explode[$x]=="50")?" selected":"").">Driver License Date of Birth</option>
			<option value='48'".(($explode[$x]=="48")?" selected":"").">Driver License Number</option>
			<option value='49'".(($explode[$x]=="49")?" selected":"").">Driver License State</option>
			<option value='54'".(($explode[$x]=="54")?" selected":"").">eCheck Type</option>
			<option value='1'".(($explode[$x]=="1")?" selected":"").">Invoice #</option>
			<option value='35'".(($explode[$x]=="35")?" selected":"").">Level 2 Duty</option>
			<option value='36'".(($explode[$x]=="36")?" selected":"").">Level 2 Freight</option>
			<option value='38'".(($explode[$x]=="38")?" selected":"").">Level 2 PO Number</option>
			<option value='34'".(($explode[$x]=="34")?" selected":"").">Level 2 Tax</option>
			<option value='37'".(($explode[$x]=="37")?" selected":"").">Level 2 Tax Exempt</option>
			<option value='53'".(($explode[$x]=="53")?" selected":"").">Name on Bank Account</option>
			<option value='4'".(($explode[$x]=="4")?" selected":"").">Payment Method (Credit Card or eCheck)</option>
			<option value='51'".(($explode[$x]=="51")?" selected":"").">Recurring Billing</option>
			<option value='29'".(($explode[$x]=="29")?" selected":"").">Shipping Address</option>
			<option value='30'".(($explode[$x]=="30")?" selected":"").">Shipping City</option>
			<option value='28'".(($explode[$x]=="28")?" selected":"").">Shipping Company</option>
			<option value='33'".(($explode[$x]=="33")?" selected":"").">Shipping Country</option>
			<option value='26'".(($explode[$x]=="26")?" selected":"").">Shipping First Name</option>
			<option value='27'".(($explode[$x]=="27")?" selected":"").">Shipping Last Name</option>
			<option value='31'".(($explode[$x]=="31")?" selected":"").">Shipping State</option>
			<option value='32'".(($explode[$x]=="32")?" selected":"").">Shipping Zip</option>
			<option value='7'".(($explode[$x]=="7")?" selected":"").">Transaction ID</option>
			<option value='5'".(($explode[$x]=="5")?" selected":"").">Transaction Type</option>
		</select>
		");
	}

function display_auth_currency($auth_currency, $input_style)
	{
	return ("
	<select name='auth_currency' ".$input_style.">
		<option value='USD'".((isset($auth_currency))?"".(($auth_currency=="USD")?" selected":"")."":"").">US Dollar (United States)</option>
		<option value='USN'".((isset($auth_currency))?"".(($auth_currency=="USN")?" selected":"")."":"").">US Dollar (Next day) (United States)</option>
		<option value='USS'".((isset($auth_currency))?"".(($auth_currency=="USS")?" selected":"")."":"").">US Dollar (Same day) (United States)</option>
		<option value='AFA'".((isset($auth_currency))?"".(($auth_currency=="AFA")?" selected":"")."":"").">Afghani (Afghanistan)</option>
		<option value='DZD'".((isset($auth_currency))?"".(($auth_currency=="DZD")?" selected":"")."":"").">Algerian Dinar (Algeria)</option>
		<option value='ADP'".((isset($auth_currency))?"".(($auth_currency=="ADP")?" selected":"")."":"").">Andorran Peseta (Andorra)</option>
		<option value='ARS'".((isset($auth_currency))?"".(($auth_currency=="ARS")?" selected":"")."":"").">Argentine Peso (Argentina)</option>
		<option value='AMD'".((isset($auth_currency))?"".(($auth_currency=="AMD")?" selected":"")."":"").">Armenian Dram (Armenia)</option>
		<option value='AWG'".((isset($auth_currency))?"".(($auth_currency=="AWG")?" selected":"")."":"").">Aruban Guilder (Aruba)</option>
		<option value='AUD'".((isset($auth_currency))?"".(($auth_currency=="AUD")?" selected":"")."":"").">Australian Dollar (Australia)</option>
		<option value='AZM'".((isset($auth_currency))?"".(($auth_currency=="AZM")?" selected":"")."":"").">Azerbaijanian Manat (Azerbaijan)</option>
		<option value='BSD'".((isset($auth_currency))?"".(($auth_currency=="BSD")?" selected":"")."":"").">Bahamian Dollar (Bahamas)</option>
		<option value='BHD'".((isset($auth_currency))?"".(($auth_currency=="BHD")?" selected":"")."":"").">Bahraini Dinar (Bahrain)</option>
		<option value='THB'".((isset($auth_currency))?"".(($auth_currency=="THB")?" selected":"")."":"").">Baht (Thailand)</option>
		<option value='PAB'".((isset($auth_currency))?"".(($auth_currency=="PAB")?" selected":"")."":"").">Balboa (Panama)</option>
		<option value='BBD'".((isset($auth_currency))?"".(($auth_currency=="BBD")?" selected":"")."":"").">Barbados Dollar (Barbados)</option>
		<option value='BYB'".((isset($auth_currency))?"".(($auth_currency=="BYB")?" selected":"")."":"").">Belarussian Ruble (Belarus)</option>
		<option value='BEF'".((isset($auth_currency))?"".(($auth_currency=="BEF")?" selected":"")."":"").">Belgian Franc (Belgium)</option>
		<option value='BZD'".((isset($auth_currency))?"".(($auth_currency=="BZD")?" selected":"")."":"").">Belize Dollar (Belize)</option>
		<option value='BMD'".((isset($auth_currency))?"".(($auth_currency=="BMD")?" selected":"")."":"").">Bermudian Dollar (Bermuda)</option>
		<option value='VEB'".((isset($auth_currency))?"".(($auth_currency=="VEB")?" selected":"")."":"").">Bolivar (Venezuela)</option>
		<option value='BOB'".((isset($auth_currency))?"".(($auth_currency=="BOB")?" selected":"")."":"").">Boliviano (Bolivia)</option>
		<option value='BRL'".((isset($auth_currency))?"".(($auth_currency=="BRL")?" selected":"")."":"").">Brazilian Real (Brazil)</option>
		<option value='BND'".((isset($auth_currency))?"".(($auth_currency=="BND")?" selected":"")."":"").">Brunei Dollar (Brunei Darussalam)</option>
		<option value='BGN'".((isset($auth_currency))?"".(($auth_currency=="BGN")?" selected":"")."":"").">Bulgarian Lev (Bulgaria)</option>
		<option value='BIF'".((isset($auth_currency))?"".(($auth_currency=="BIF")?" selected":"")."":"").">Burundi Franc (Burundi)</option>
		<option value='CAD'".((isset($auth_currency))?"".(($auth_currency=="CAD")?" selected":"")."":"").">Canadian Dollar (Canada)</option>
		<option value='CVE'".((isset($auth_currency))?"".(($auth_currency=="CVE")?" selected":"")."":"").">Cape Verde Escudo (Cape Verde)</option>
		<option value='KYD'".((isset($auth_currency))?"".(($auth_currency=="KYD")?" selected":"")."":"").">Cayman Islands Dollar (Cayman Islands)</option>
		<option value='GHC'".((isset($auth_currency))?"".(($auth_currency=="GHC")?" selected":"")."":"").">Cedi (Ghana)</option>
		<option value='XOF'".((isset($auth_currency))?"".(($auth_currency=="XOF")?" selected":"")."":"").">CFA Franc BCEAO (Guinea-Bissau)</option>
		<option value='XAF'".((isset($auth_currency))?"".(($auth_currency=="XAF")?" selected":"")."":"").">CFA Franc BEAC (Central African Republic)</option>
		<option value='XPF'".((isset($auth_currency))?"".(($auth_currency=="XPF")?" selected":"")."":"").">CFP Franc (New Caledonia)</option>
		<option value='CLP'".((isset($auth_currency))?"".(($auth_currency=="CLP")?" selected":"")."":"").">Chilean Peso (Chile)</option>
		<option value='COP'".((isset($auth_currency))?"".(($auth_currency=="COP")?" selected":"")."":"").">Colombian Peso (Colombia)</option>
		<option value='KMF'".((isset($auth_currency))?"".(($auth_currency=="KMF")?" selected":"")."":"").">Comoro Franc (Comoros)</option>
		<option value='BAM'".((isset($auth_currency))?"".(($auth_currency=="BAM")?" selected":"")."":"").">Convertible Marks (Bosnia And Herzegovina)</option>
		<option value='NIO'".((isset($auth_currency))?"".(($auth_currency=="NIO")?" selected":"")."":"").">Cordoba Oro (Nicaragua)</option>
		<option value='CRC'".((isset($auth_currency))?"".(($auth_currency=="CRC")?" selected":"")."":"").">Costa Rican Colon (Costa Rica)</option>
		<option value='CUP'".((isset($auth_currency))?"".(($auth_currency=="CUP")?" selected":"")."":"").">Cuban Peso (Cuba)</option>
		<option value='CYP'".((isset($auth_currency))?"".(($auth_currency=="CYP")?" selected":"")."":"").">Cyprus Pound (Cyprus)</option>
		<option value='CZK'".((isset($auth_currency))?"".(($auth_currency=="CZK")?" selected":"")."":"").">Czech Koruna (Czech Republic)</option>
		<option value='GMD'".((isset($auth_currency))?"".(($auth_currency=="GMD")?" selected":"")."":"").">Dalasi (Gambia)</option>
		<option value='DKK'".((isset($auth_currency))?"".(($auth_currency=="DKK")?" selected":"")."":"").">Danish Krone (Denmark)</option>
		<option value='MKD'".((isset($auth_currency))?"".(($auth_currency=="MKD")?" selected":"")."":"").">Denar (The Former Yugoslav Republic Of Macedonia)</option>
		<option value='DEM'".((isset($auth_currency))?"".(($auth_currency=="DEM")?" selected":"")."":"").">Deutsche Mark (Germany)</option>
		<option value='AED'".((isset($auth_currency))?"".(($auth_currency=="AED")?" selected":"")."":"").">Dirham (United Arab Emirates)</option>
		<option value='DJF'".((isset($auth_currency))?"".(($auth_currency=="DJF")?" selected":"")."":"").">Djibouti Franc (Djibouti)</option>
		<option value='STD'".((isset($auth_currency))?"".(($auth_currency=="STD")?" selected":"")."":"").">Dobra (Sao Tome And Principe)</option>
		<option value='DOP'".((isset($auth_currency))?"".(($auth_currency=="DOP")?" selected":"")."":"").">Dominican Peso (Dominican Republic)</option>
		<option value='VND'".((isset($auth_currency))?"".(($auth_currency=="VND")?" selected":"")."":"").">Dong (Vietnam)</option>
		<option value='GRD'".((isset($auth_currency))?"".(($auth_currency=="GRD")?" selected":"")."":"").">Drachma (Greece)</option>
		<option value='XCD'".((isset($auth_currency))?"".(($auth_currency=="XCD")?" selected":"")."":"").">East Caribbean Dollar (Grenada)</option>
		<option value='EGP'".((isset($auth_currency))?"".(($auth_currency=="EGP")?" selected":"")."":"").">Egyptian Pound (Egypt)</option>
		<option value='SVC'".((isset($auth_currency))?"".(($auth_currency=="SVC")?" selected":"")."":"").">El Salvador Colon (El Salvador)</option>
		<option value='ETB'".((isset($auth_currency))?"".(($auth_currency=="ETB")?" selected":"")."":"").">Ethiopian Birr (Ethiopia)</option>
		<option value='EUR'".((isset($auth_currency))?"".(($auth_currency=="EUR")?" selected":"")."":"").">Euro (Europe)</option>
		<option value='FKP'".((isset($auth_currency))?"".(($auth_currency=="FKP")?" selected":"")."":"").">Falkland Islands Pound (Falkland Islands)</option>
		<option value='FJD'".((isset($auth_currency))?"".(($auth_currency=="FJD")?" selected":"")."":"").">Fiji Dollar (Fiji)</option>
		<option value='HUF'".((isset($auth_currency))?"".(($auth_currency=="HUF")?" selected":"")."":"").">Forint (Hungary)</option>
		<option value='CDF'".((isset($auth_currency))?"".(($auth_currency=="CDF")?" selected":"")."":"").">Franc Congolais (The Democratic Republic Of Congo)</option>
		<option value='FRF'".((isset($auth_currency))?"".(($auth_currency=="FRF")?" selected":"")."":"").">French Franc (France)</option>
		<option value='GIP'".((isset($auth_currency))?"".(($auth_currency=="GIP")?" selected":"")."":"").">Gibraltar Pound (Gibraltar)</option>
		<option value='XAU'".((isset($auth_currency))?"".(($auth_currency=="XAU")?" selected":"")."":"").">Gold</option>
		<option value='HTG'".((isset($auth_currency))?"".(($auth_currency=="HTG")?" selected":"")."":"").">Gourde (Haiti)</option>
		<option value='PYG'".((isset($auth_currency))?"".(($auth_currency=="PYG")?" selected":"")."":"").">Guarani (Paraguay)</option>
		<option value='GNF'".((isset($auth_currency))?"".(($auth_currency=="GNF")?" selected":"")."":"").">Guinea Franc (Guinea)</option>
		<option value='GWP'".((isset($auth_currency))?"".(($auth_currency=="GWP")?" selected":"")."":"").">Guinea-Bissau Peso (Guinea-Bissau)</option>
		<option value='GYD'".((isset($auth_currency))?"".(($auth_currency=="GYD")?" selected":"")."":"").">Guyana Dollar (Guyana)</option>
		<option value='HKD'".((isset($auth_currency))?"".(($auth_currency=="HKD")?" selected":"")."":"").">Hong Kong Dollar (Hong Kong)</option>
		<option value='UAH'".((isset($auth_currency))?"".(($auth_currency=="UAH")?" selected":"")."":"").">Hryvnia (Ukraine)</option>
		<option value='ISK'".((isset($auth_currency))?"".(($auth_currency=="ISK")?" selected":"")."":"").">Iceland Krona (Iceland)</option>
		<option value='INR'".((isset($auth_currency))?"".(($auth_currency=="INR")?" selected":"")."":"").">Indian Rupee (India)</option>
		<option value='IRR'".((isset($auth_currency))?"".(($auth_currency=="IRR")?" selected":"")."":"").">Iranian Rial (Islamic Republic Of Iran)</option>
		<option value='IQD'".((isset($auth_currency))?"".(($auth_currency=="IQD")?" selected":"")."":"").">Iraqi Dinar (Iraq)</option>
		<option value='IEP'".((isset($auth_currency))?"".(($auth_currency=="IEP")?" selected":"")."":"").">Irish Pound (Ireland)</option>
		<option value='ITL'".((isset($auth_currency))?"".(($auth_currency=="ITL")?" selected":"")."":"").">Italian Lira (Italy)</option>
		<option value='JMD'".((isset($auth_currency))?"".(($auth_currency=="JMD")?" selected":"")."":"").">Jamaican Dollar (Jamaica)</option>
		<option value='JOD'".((isset($auth_currency))?"".(($auth_currency=="JOD")?" selected":"")."":"").">Jordanian Dinar (Jordan)</option>
		<option value='KES'".((isset($auth_currency))?"".(($auth_currency=="KES")?" selected":"")."":"").">Kenyan Shilling (Kenya)</option>
		<option value='PGK'".((isset($auth_currency))?"".(($auth_currency=="PGK")?" selected":"")."":"").">Kina (Papua New Guinea)</option>
		<option value='LAK'".((isset($auth_currency))?"".(($auth_currency=="LAK")?" selected":"")."":"").">Kip (Lao People's Democratic Republic)</option>
		<option value='EEK'".((isset($auth_currency))?"".(($auth_currency=="EEK")?" selected":"")."":"").">Kroon (Estonia)</option>
		<option value='HRK'".((isset($auth_currency))?"".(($auth_currency=="HRK")?" selected":"")."":"").">Kuna (Croatia)</option>
		<option value='KWD'".((isset($auth_currency))?"".(($auth_currency=="KWD")?" selected":"")."":"").">Kuwaiti Dinar (Kuwait)</option>
		<option value='MWK'".((isset($auth_currency))?"".(($auth_currency=="MWK")?" selected":"")."":"").">Kwacha (Malawi)</option>
		<option value='ZMK'".((isset($auth_currency))?"".(($auth_currency=="ZMK")?" selected":"")."":"").">Kwacha (Zambia)</option>
		<option value='AOR'".((isset($auth_currency))?"".(($auth_currency=="AOR")?" selected":"")."":"").">Kwanza Reajustado (Angola)</option>
		<option value='MMK'".((isset($auth_currency))?"".(($auth_currency=="MMK")?" selected":"")."":"").">Kyat (Myanmar)</option>
		<option value='GEL'".((isset($auth_currency))?"".(($auth_currency=="GEL")?" selected":"")."":"").">Lari (Georgia)</option>
		<option value='LVL'".((isset($auth_currency))?"".(($auth_currency=="LVL")?" selected":"")."":"").">Latvian Lats (Latvia)</option>
		<option value='LBP'".((isset($auth_currency))?"".(($auth_currency=="LBP")?" selected":"")."":"").">Lebanese Pound (Lebanon)</option>
		<option value='ALL'".((isset($auth_currency))?"".(($auth_currency=="ALL")?" selected":"")."":"").">Lek (Albania)</option>
		<option value='HNL'".((isset($auth_currency))?"".(($auth_currency=="HNL")?" selected":"")."":"").">Lempira (Honduras)</option>
		<option value='SLL'".((isset($auth_currency))?"".(($auth_currency=="SLL")?" selected":"")."":"").">Leone (Sierra Leone)</option>
		<option value='ROL'".((isset($auth_currency))?"".(($auth_currency=="ROL")?" selected":"")."":"").">Leu (Romania)</option>
		<option value='BGL'".((isset($auth_currency))?"".(($auth_currency=="BGL")?" selected":"")."":"").">Lev (Bulgaria)</option>
		<option value='LRD'".((isset($auth_currency))?"".(($auth_currency=="LRD")?" selected":"")."":"").">Liberian Dollar (Liberia)</option>
		<option value='LYD'".((isset($auth_currency))?"".(($auth_currency=="LYD")?" selected":"")."":"").">Libyan Dinar (Libyan Arab Jamahiriya)</option>
		<option value='SZL'".((isset($auth_currency))?"".(($auth_currency=="SZL")?" selected":"")."":"").">Lilangeni (Swaziland)</option>
		<option value='LTL'".((isset($auth_currency))?"".(($auth_currency=="LTL")?" selected":"")."":"").">Lithuanian Litas (Lithuania)</option>
		<option value='LSL'".((isset($auth_currency))?"".(($auth_currency=="LSL")?" selected":"")."":"").">Loti (Lesotho)</option>
		<option value='LUF'".((isset($auth_currency))?"".(($auth_currency=="LUF")?" selected":"")."":"").">Luxembourg Franc (Luxembourg)</option>
		<option value='MGF'".((isset($auth_currency))?"".(($auth_currency=="MGF")?" selected":"")."":"").">Malagasy Franc (Madagascar)</option>
		<option value='MYR'".((isset($auth_currency))?"".(($auth_currency=="MYR")?" selected":"")."":"").">Malaysian Ringgit (Malaysia)</option>
		<option value='MTL'".((isset($auth_currency))?"".(($auth_currency=="MTL")?" selected":"")."":"").">Maltese Lira (Malta)</option>
		<option value='TMM'".((isset($auth_currency))?"".(($auth_currency=="TMM")?" selected":"")."":"").">Manat (Turkmenistan)</option>
		<option value='FIM'".((isset($auth_currency))?"".(($auth_currency=="FIM")?" selected":"")."":"").">Markka (Finland)</option>
		<option value='MUR'".((isset($auth_currency))?"".(($auth_currency=="MUR")?" selected":"")."":"").">Mauritius Rupee (Mauritius)</option>
		<option value='MZM'".((isset($auth_currency))?"".(($auth_currency=="MZM")?" selected":"")."":"").">Metical (Mozambique)</option>
		<option value='MXN'".((isset($auth_currency))?"".(($auth_currency=="MXN")?" selected":"")."":"").">Mexican Peso (Mexico)</option>
		<option value='MXV'".((isset($auth_currency))?"".(($auth_currency=="MXV")?" selected":"")."":"").">Mexican Unidad de Inversion (Mexico)</option>
		<option value='MDL'".((isset($auth_currency))?"".(($auth_currency=="MDL")?" selected":"")."":"").">Moldovan Leu (Republic Of Moldova)</option>
		<option value='MAD'".((isset($auth_currency))?"".(($auth_currency=="MAD")?" selected":"")."":"").">Moroccan Dirham (Morocco)</option>
		<option value='BOV'".((isset($auth_currency))?"".(($auth_currency=="BOV")?" selected":"")."":"").">Mvdol (Bolivia)</option>
		<option value='NGN'".((isset($auth_currency))?"".(($auth_currency=="NGN")?" selected":"")."":"").">Naira (Nigeria)</option>
		<option value='ERN'".((isset($auth_currency))?"".(($auth_currency=="ERN")?" selected":"")."":"").">Nakfa (Eritrea)</option>
		<option value='NAD'".((isset($auth_currency))?"".(($auth_currency=="NAD")?" selected":"")."":"").">Namibia Dollar (Namibia)</option>
		<option value='NPR'".((isset($auth_currency))?"".(($auth_currency=="NPR")?" selected":"")."":"").">Nepalese Rupee (Nepal)</option>
		<option value='ANG'".((isset($auth_currency))?"".(($auth_currency=="ANG")?" selected":"")."":"").">Netherlands (Netherlands)</option>
		<option value='NLG'".((isset($auth_currency))?"".(($auth_currency=="NLG")?" selected":"")."":"").">Netherlands Guilder (Netherlands)</option>
		<option value='YUM'".((isset($auth_currency))?"".(($auth_currency=="YUM")?" selected":"")."":"").">New Dinar (Yugoslavia)</option>
		<option value='ILS'".((isset($auth_currency))?"".(($auth_currency=="ILS")?" selected":"")."":"").">New Israeli Sheqel (Israel)</option>
		<option value='AON'".((isset($auth_currency))?"".(($auth_currency=="AON")?" selected":"")."":"").">New Kwanza (Angola)</option>
		<option value='TWD'".((isset($auth_currency))?"".(($auth_currency=="TWD")?" selected":"")."":"").">New Taiwan Dollar (Province Of China Taiwan)</option>
		<option value='ZRN'".((isset($auth_currency))?"".(($auth_currency=="ZRN")?" selected":"")."":"").">New Zaire (Zaire)</option>
		<option value='NZD'".((isset($auth_currency))?"".(($auth_currency=="NZD")?" selected":"")."":"").">New Zealand Dollar (New Zealand)</option>
		<option value='BTN'".((isset($auth_currency))?"".(($auth_currency=="BTN")?" selected":"")."":"").">Ngultrum (Bhutan)</option>
		<option value='KPW'".((isset($auth_currency))?"".(($auth_currency=="KPW")?" selected":"")."":"").">North Korean Won (Democratic People's Republic Of Korea)</option>
		<option value='NOK'".((isset($auth_currency))?"".(($auth_currency=="NOK")?" selected":"")."":"").">Norwegian Krone (Norway)</option>
		<option value='PEN'".((isset($auth_currency))?"".(($auth_currency=="PEN")?" selected":"")."":"").">Nuevo Sol (Peru)</option>
		<option value='MRO'".((isset($auth_currency))?"".(($auth_currency=="MRO")?" selected":"")."":"").">Ouguiya (Mauritania)</option>
		<option value='TOP'".((isset($auth_currency))?"".(($auth_currency=="TOP")?" selected":"")."":"").">Pa'anga (Tonga)</option>
		<option value='PKR'".((isset($auth_currency))?"".(($auth_currency=="PKR")?" selected":"")."":"").">Pakistan Rupee (Pakistan)</option>
		<option value='XPD'".((isset($auth_currency))?"".(($auth_currency=="XPD")?" selected":"")."":"").">Palladium</option>
		<option value='MOP'".((isset($auth_currency))?"".(($auth_currency=="MOP")?" selected":"")."":"").">Pataca (Macau)</option>
		<option value='UYU'".((isset($auth_currency))?"".(($auth_currency=="UYU")?" selected":"")."":"").">Peso Uruguayo (Uruguay)</option>
		<option value='PHP'".((isset($auth_currency))?"".(($auth_currency=="PHP")?" selected":"")."":"").">Philippine Peso (Philippines)</option>
		<option value='XPT'".((isset($auth_currency))?"".(($auth_currency=="XPT")?" selected":"")."":"").">Platinum</option>
		<option value='PTE'".((isset($auth_currency))?"".(($auth_currency=="PTE")?" selected":"")."":"").">Portuguese Escudo (Portugal)</option>
		<option value='GBP'".((isset($auth_currency))?"".(($auth_currency=="GBP")?" selected":"")."":"").">Pound Sterling (United Kingdom)</option>
		<option value='BWP'".((isset($auth_currency))?"".(($auth_currency=="BWP")?" selected":"")."":"").">Pula (Botswana)</option>
		<option value='QAR'".((isset($auth_currency))?"".(($auth_currency=="QAR")?" selected":"")."":"").">Qatari Rial (Qatar)</option>
		<option value='GTQ'".((isset($auth_currency))?"".(($auth_currency=="GTQ")?" selected":"")."":"").">Quetzal (Guatemala)</option>
		<option value='ZAL'".((isset($auth_currency))?"".(($auth_currency=="ZAL")?" selected":"")."":"").">Rand (Financial) (Lesotho)</option>
		<option value='ZAR'".((isset($auth_currency))?"".(($auth_currency=="ZAR")?" selected":"")."":"").">Rand (South Africa)</option>
		<option value='OMR'".((isset($auth_currency))?"".(($auth_currency=="OMR")?" selected":"")."":"").">Rial Omani (Oman)</option>
		<option value='KHR'".((isset($auth_currency))?"".(($auth_currency=="KHR")?" selected":"")."":"").">Riel (Cambodia)</option>
		<option value='MVR'".((isset($auth_currency))?"".(($auth_currency=="MVR")?" selected":"")."":"").">Rufiyaa (Maldives)</option>
		<option value='IDR'".((isset($auth_currency))?"".(($auth_currency=="IDR")?" selected":"")."":"").">Rupiah (Indonesia)</option>
		<option value='RUB'".((isset($auth_currency))?"".(($auth_currency=="RUB")?" selected":"")."":"").">Russian Ruble (Russian Federation)</option>
		<option value='RUR'".((isset($auth_currency))?"".(($auth_currency=="RUR")?" selected":"")."":"").">Russian Ruble (Russian Federation)</option>
		<option value='RWF'".((isset($auth_currency))?"".(($auth_currency=="RWF")?" selected":"")."":"").">Rwanda Franc (Rwanda)</option>
		<option value='SAR'".((isset($auth_currency))?"".(($auth_currency=="SAR")?" selected":"")."":"").">Saudi Riyal (Saudi Arabia)</option>
		<option value='ATS'".((isset($auth_currency))?"".(($auth_currency=="ATS")?" selected":"")."":"").">Schilling (Austria)</option>
		<option value='SCR'".((isset($auth_currency))?"".(($auth_currency=="SCR")?" selected":"")."":"").">Seychelles Rupee (Seychelles)</option>
		<option value='XAG'".((isset($auth_currency))?"".(($auth_currency=="XAG")?" selected":"")."":"").">Silver</option>
		<option value='SGD'".((isset($auth_currency))?"".(($auth_currency=="SGD")?" selected":"")."":"").">Singapore Dollar (Singapore)</option>
		<option value='SKK'".((isset($auth_currency))?"".(($auth_currency=="SKK")?" selected":"")."":"").">Slovak Koruna (Slovakia)</option>
		<option value='SBD'".((isset($auth_currency))?"".(($auth_currency=="SBD")?" selected":"")."":"").">Solomon Islands Dollar (Solomon Islands)</option>
		<option value='KGS'".((isset($auth_currency))?"".(($auth_currency=="KGS")?" selected":"")."":"").">Som (Kyrgyzstan)</option>
		<option value='SOS'".((isset($auth_currency))?"".(($auth_currency=="SOS")?" selected":"")."":"").">Somali Shilling (Somalia)</option>
		<option value='ESP'".((isset($auth_currency))?"".(($auth_currency=="ESP")?" selected":"")."":"").">Spanish Peseta (Spain)</option>
		<option value='LKR'".((isset($auth_currency))?"".(($auth_currency=="LKR")?" selected":"")."":"").">Sri Lanka Rupee (Sri Lanka)</option>
		<option value='SHP'".((isset($auth_currency))?"".(($auth_currency=="SHP")?" selected":"")."":"").">St Helena Pound (St Helena)</option>
		<option value='ECS'".((isset($auth_currency))?"".(($auth_currency=="ECS")?" selected":"")."":"").">Sucre (Ecuador)</option>
		<option value='SDD'".((isset($auth_currency))?"".(($auth_currency=="SDD")?" selected":"")."":"").">Sudanese Dinar (Sudan)</option>
		<option value='SRG'".((isset($auth_currency))?"".(($auth_currency=="SRG")?" selected":"")."":"").">Surinam Guilder (Suriname)</option>
		<option value='SEK'".((isset($auth_currency))?"".(($auth_currency=="SEK")?" selected":"")."":"").">Swedish Krona (Sweden)</option>
		<option value='CHF'".((isset($auth_currency))?"".(($auth_currency=="CHF")?" selected":"")."":"").">Swiss Franc (Switzerland)</option>
		<option value='SYP'".((isset($auth_currency))?"".(($auth_currency=="SYP")?" selected":"")."":"").">Syrian Pound (Syrian Arab Republic)</option>
		<option value='TJR'".((isset($auth_currency))?"".(($auth_currency=="TJR")?" selected":"")."":"").">Tajik Ruble (Tajikistan)</option>
		<option value='BDT'".((isset($auth_currency))?"".(($auth_currency=="BDT")?" selected":"")."":"").">Taka (Bangladesh)</option>
		<option value='WST'".((isset($auth_currency))?"".(($auth_currency=="WST")?" selected":"")."":"").">Tala (Samoa)</option>
		<option value='TZS'".((isset($auth_currency))?"".(($auth_currency=="TZS")?" selected":"")."":"").">Tanzanian Shilling (United Republic Of Tanzania)</option>
		<option value='KZT'".((isset($auth_currency))?"".(($auth_currency=="KZT")?" selected":"")."":"").">Tenge (Kazakhstan)</option>
		<option value='TPE'".((isset($auth_currency))?"".(($auth_currency=="TPE")?" selected":"")."":"").">Timor Escudo (East Timor)</option>
		<option value='SIT'".((isset($auth_currency))?"".(($auth_currency=="SIT")?" selected":"")."":"").">Tolar (Slovenia)</option>
		<option value='TTD'".((isset($auth_currency))?"".(($auth_currency=="TTD")?" selected":"")."":"").">Trinidad and Tobago Dollar (Trinidad And Tobago)</option>
		<option value='MNT'".((isset($auth_currency))?"".(($auth_currency=="MNT")?" selected":"")."":"").">Tugrik (Mongolia)</option>
		<option value='TND'".((isset($auth_currency))?"".(($auth_currency=="TND")?" selected":"")."":"").">Tunisian Dinar (Tunisia)</option>
		<option value='TRL'".((isset($auth_currency))?"".(($auth_currency=="TRL")?" selected":"")."":"").">Turkish Lira (Turkey)</option>
		<option value='UGX'".((isset($auth_currency))?"".(($auth_currency=="UGX")?" selected":"")."":"").">Uganda Shilling (Uganda)</option>
		<option value='ECV'".((isset($auth_currency))?"".(($auth_currency=="ECV")?" selected":"")."":"").">Unidad de Valor Constante (Ecuador)</option>
		<option value='CLF'".((isset($auth_currency))?"".(($auth_currency=="CLF")?" selected":"")."":"").">Unidades de fomento (Chile)</option>
		<option value='UZS'".((isset($auth_currency))?"".(($auth_currency=="UZS")?" selected":"")."":"").">Uzbekistan Sum (Uzbekistan)</option>
		<option value='VUV'".((isset($auth_currency))?"".(($auth_currency=="VUV")?" selected":"")."":"").">Vatu (Vanuatu)</option>
		<option value='KRW'".((isset($auth_currency))?"".(($auth_currency=="KRW")?" selected":"")."":"").">Won (Republic Of Korea)</option>
		<option value='YER'".((isset($auth_currency))?"".(($auth_currency=="YER")?" selected":"")."":"").">Yemeni Rial (Yemen)</option>
		<option value='JPY'".((isset($auth_currency))?"".(($auth_currency=="JPY")?" selected":"")."":"").">Yen (Japan)</option>
		<option value='CNY'".((isset($auth_currency))?"".(($auth_currency=="CNY")?" selected":"")."":"").">Yuan Renminbi (China)</option>
		<option value='ZWD'".((isset($auth_currency))?"".(($auth_currency=="ZWD")?" selected":"")."":"").">Zimbabwe Dollar (Zimbabwe)</option>
		<option value='PLN'".((isset($auth_currency))?"".(($auth_currency=="PLN")?" selected":"")."":"").">Zloty (Poland)</option>
	</select>
		");
	}
?>