// ---------------------------------------------------------------------
function OpenMap(host,site_name,appendurl) {
	var w = 800;
	var h = 600;
	if (window.screen) {
		w = screen.width * 0.9;
		h = screen.height * 0.8;
	}
	if (w > 1024) w = 1024;
	if (h > 768) h = 768;
  //any reference to fullscreen forces location bar in IE 7
	var options = "toolbar=0,menubar=0,location=0,directories=0," +
					"status=1,titlebar=1,scrollbars=1,top=0,left=0,resizable=1," +
					"height=" + h + ",width=" + w;
	//using a name causes maps to be replaced if a second session for the same site is launched from the parent
	//separate virtual directories forces a new session id from the browser
	var url ="http://" + host + "/imf_" + site_name + "/imf.jsp?site=" + site_name + appendurl;
	var wname = "imf_" + site_name;
	var imfwindow = parent.window.open(url, wname, options);
	//if a second session launch is made the previous window gets the focus and comes to the front
	imfwindow.focus();
}

