function winOpen(page,leftCorner,topCorner,windowWidth,windowHeight) {
	window.open(page,"new","left=" + leftCorner + ",top=" + topCorner + ",width=" + 
	windowWidth + ",height=" + windowHeight + ",scrollbars=yes,resizable=yes");
}

function swapImg(name,swapSource) {
document[name].src = swapSource;
}

function QuickSearch(SearchObj){
if (document.Form.elements[SearchObj].selectedIndex != 0) {
	var URL = document.Form.elements[SearchObj].options[document.Form.elements[SearchObj].selectedIndex].value;
	window.location.href = URL;
	}
}

function passQuery(nextPage) {
	var queryString = document.location.search.substring(1);
	var URL
	if (queryString.length > 0) {
		URL = nextPage + "?" + queryString;
		}
	else URL = nextPage;
	window.location.href = URL;
}

function displayRate(Currency) {
	if (Currency == "DEM") {
		USDtable.style.display = "none";
		DEMtable.style.display = "";
	}
	
	if (Currency == "USD") {
		DEMtable.style.display = "none";
		USDtable.style.display = "";
	}
}

function show(id) {

if (document.layers) {
	var leftCorner = document.Corner.x + 18;
	document.layers["Holder"].moveTo(leftCorner,242);
	document.layers["Holder"].document.layers[id + "NS"].document.layers[id].visibility = 'visible';
	}
else if (document.all) {
	var w = document.body.clientWidth;
	if (w>640) var leftCorner = (w - 640)/2 + 18;
	else var leftCorner = 18;
	document.all("Holder").style.left = leftCorner;
	document.all(id).style.visibility = 'visible';
	}
}

function hide(id) {

if (document.layers) {
	document.layers["Holder"].document.layers[id + 'NS'].document.layers[id].visibility = 'hidden';
	}
else if (document.all) {
	document.all(id).style.visibility = 'hidden';
	}
}