var nam;
var top_;
var left_;
var bg_color='';
var bg_color_id=0;


function tops(h,w){
	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;
	}
}


function dok(edit,id,h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
nam=window.open("/exp/adm_tem.html?edit="+edit+"&id="+id+"",null,"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}

function dok2(edit,id,h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
nam=window.open("/exp/answer.html?edit="+edit+"&id="+id+"",null,"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}

function dok3(url,h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
nam=window.open(url,null,"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}
/*function dok3(id,h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
if (id=='')id_='';else id_="?&id="+id;
nam=window.open("/forum/answ.html"+id_,'Answer',"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}

function dok5(h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
nam=window.open("/forum/new_t.html",'New_theme',"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}

function dok4(url,h,w){
if (nam!=null && !nam.closed)nam.close();
tops(h,w);
nam=window.open(url,null,"height="+h+",width="+w+",status=yes,toolbar=no,menubar=no,location=no,top="+top_+",left="+left_+",scrollbars=yes,resizable=yes");
nam.focus();
}*/
