//reload page with the new currencycode

//get select box text - Added by Sudha for RFS 14247 - currency translation
function GetSelValue(ctl) {
	var selIdx = ctl.selectedIndex
	return selIdx == -1 ? "" : ctl[selIdx].value
}


function ChangeCurrency(currCtl) {
	var frm = document.MainLangSwitch  //reuse language switch form
	var URL = location.pathname + "?" + setQStringName(location.search.substr(1), "curr", new Array(GetSelValue(currCtl)))  //replace or add currency code to the page url

	if (frm) {
		frm.action = URL
		frm.submit()
	} else {
		location = URL
	}
}
