
function mtdChangeCurrency(currency){
	var strURL = String(document.location)
	var re = new RegExp('&','gi')
	var newStr = strURL.replace(re,"AMP")
	//window.location.href = 'http://www.hyve.com/changeCurrency.asp?currency=' + currency + '&location=' + location + '&URL=' + newStr
	window.location.href = '/changeCurrency.asp?currency=' + currency + '&location=' + location + '&URL=' + newStr
}

function mtdOpenWin(rstrURL){
	winLeft=0;
	winTop=0;
	window.open(rstrURL,"win","",false)
}

function mtdSetStatus(strText){
	window.status=strText;
	return true;
}

function mtdShowGlossary(strGlossaryItem){
	var url = "/docs/glossary/fs_glossarypopup.asp?glossaryitem=" + strGlossaryItem;
	winLeft=0;
	winTop=0;
	window.open(url,"glossary","resizable=0,scrollbars=1,toolbar=0,status=0,left="+winLeft+",top="+winTop+",width=340,height=400",false)
}

function mtdLaunchTerms(rstrURL){
	winwidth='576';
	winheight='500';
	winLeft=(screen.width/2)-(winwidth/2);
	winTop=((screen.height/2)-(winheight/2))-20;
	window.open(rstrURL,"termspop","resizable=1,scrollbars=1,toolbar=0,status=1,left="+winLeft+",top="+winTop+",width="+winwidth+",height="+winheight+"",false)
}

function mtdPopWin(rstrURL,rstrWidth,rstrHeight){
	width=rstrWidth;
	height=rstrHeight;
	winLeft=(screen.width/2) - (width/2);
	winTop=(screen.height/2) - (height/2) - (screen.height/10);
	window.open(rstrURL,"win","resizable=1,scrollbars=1,toolbar=0,status=0,left="+winLeft+",top="+winTop+",width="+width+",height="+height+"",false)
}
function mtdCheck(rstrObj) {
	alert(rstrObj);
	document.getElementById(rstrObj).value = "1";
}

function mtdShowHideDiv(show, hide){
	if (document.getElementById) {
		document.getElementById(show).style.display = 'inline';
		document.getElementById(hide).style.display = 'none';
		//return true;
	}
}
