function eM_GoToCountry(form){
var templang =  form.selectLanguage.selectedIndex;
location = form.selectCountry.options[tempcountry].value}

function eM_GoToLanguage(form){
var templang =  form.selectLanguage.selectedIndex;
location = form.selectLanguage.options[templang].value}

function eM_GoToMerchant(form){
var tempmerch =  form.selectMerchant.selectedIndex;
location = form.selectMerchant.options[tempmerch].value}

function eM_GoToCategory(form){
var tempcat =  form.searchCategoryID.selectedIndex;
location = form.searchCategoryID.options[tempcat].value}

function eM_UpdateAddEdit(form){
var tempupdate =  form.addRetailCategory.selectedIndex;
location = form.addRetailCategory.options[tempupdate].href}

function eM_ExitPopup(inURL){
window.open(inURL,"","width=450,height=420")
}

function eM_WinClose(){
window.parent.close;
}

function eM_LaunchPopup(inURL){
window.open (inURL,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=550,height=400');
}

function eM_LaunchLink(inURL, inWidth){
window.open (inURL,'','toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=820,height=620');
}

function eM_WinPrint(){
window.print();
}

function eM_goToURL() { //v3.0
  var i, args=eM_goToURL.arguments; document.eM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function toggleHelp(){
	if(document.getElementById('helpDiv').style.display == "block")
		document.getElementById('helpDiv').style.display = "none";
	else
		document.getElementById('helpDiv').style.display = "block";
	}

function toggleSearch(){
	if(document.getElementById('advancedSearchDiv').style.display == "block")
		document.getElementById('advancedSearchDiv').style.display = "none";
	else
		document.getElementById('advancedSearchDiv').style.display = "block";
	}
