// Rev.T2 6.19.06 - Last change: Rates, CurrConvCountry.value > 0 (!=-1), Default value=-1, Bank wire fee
function ConvertCurrency()
{
	var currency = COUNTRIES_ABBREVIATIONS;
	var rate = CURRENCY_RATES;

	var form = arguments[0], orderPage = 0, nVal;
	if (arguments.length > 1) orderPage = arguments[1];
	if (orderPage == 3) {
		if (form.AllDutiesAndTaxes.checked)
			nVal = form.GrandTotalAfterDuties.value.replace(/\,/g, "");
		else
			nVal = form.GrandTotalAfterPFees.value.replace(/\,/g, "");
	}
	else if (orderPage == 1)
		nVal = form.Total.value.replace(/\,/g, "");
	else
		nVal = form.GrandTotal.value.replace(/\,/g, "");
	if (!nVal) return;
	var toR = rate[form.CurrConvCountry.selectedIndex - 1];
	var resultV = nVal * toR;
	if (form.CurrConvCountry.value > 0)
		form.CurrConversion.value = currency[form.CurrConvCountry.selectedIndex - 1] + " " + Currency(resultV);
	else
		form.CurrConversion.value = "";
}

function PrintCountryList()
{
	document.write(CURRENCY_COUNTRIES);
}
