var opswin;
var top_=10;
var left_=10;
function tops(w,h){
	if(navigator.appName == "Netscape") {
		top_=window.innerHeight/2-h/2;
		left_=window.innerWidth/2-w/2;
	}
	else{
		top_=document.body.clientHeight/2-h/2;
		left_=document.body.clientWidth/2-w/2;
	}
	if(top_<0)top=0;
	if(left_<0)top=0;
}
function adm_opwin_new(a,w,h){
	if (navigator.userAgent.toLowerCase().indexOf("opera")==-1 && opswin!=null && !opswin.closed)opswin.close();
	tops(w,h);
	opswin=window.open(a,'',"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
	opswin.focus();
}
function displays_div(m){
	if (document.getElementById('map_g_'+m).style.display=='block') 	document.getElementById('map_g_'+m).style.display='none';
	else	document.getElementById('map_g_'+m).style.display='block';
	return false;
}
