toptions = { type: 'iframe', width: '948', height: '520', layout: 'dashboard', shaded: '1', resizable: '0', onclose: function() { closePortal(); } };

function TopObjects(sVisibility) {
	oSelects = document.getElementsByTagName('SELECT');
	if (oSelects.length > 0) {
		for (i = 0; i < oSelects.length; i++) {
			oSelects[i].style.visibility = sVisibility;
		}
	}

	oObjects = document.getElementsByTagName('OBJECT');
	if (oObjects.length > 0) {
		for (i = 0; i < oObjects.length; i++) {
			oObjects[i].style.visibility = sVisibility;
		}
	}
}

// Popup window
function popupWindow( Name, width, height) {
	style = "height=" + height + ",width=" + width + ", top=" + ((screen.height/2)-(height/2)) + ", left=" + ((screen.width/2)-(width/2)) + ", status=yes, toolbar=no, menubar=no, location=no, scrollbars=yes, resizable=yes";
	if (document.getElementsByTagName('base')[0] && Name.substring(0, 1) != "/") {
	    var prefix = document.getElementsByTagName('base')[0].href;
	}
	else {
	    var prefix = "";
	}
	open( prefix + Name, 'Popup', style );
}

function MapPopup( Name )
{
style = "height=600, width=940, top=100, left=100, status=no, toolbar=no, menubar=no, location=no, scrollbars=no, resizable=no";
if (document.getElementsByTagName('base')[0] && Name.substring(0, 1) != "/") {
    var prefix = document.getElementsByTagName('base')[0].href;
}
else {
    var prefix = "";
}
open( prefix + Name, 'GeoMapWindow', style );
}
