function show_icq(width,height,s_url){
	var imgnwin=window.open(s_url,"icqwin","resizable=no,scrollbars=yes,toolbar=no,location=no,directoties=no,status=no,menubar=no,width="+width+",height="+height);
}

function show_bask(width,height,s_url){
	var basknwin=window.open(s_url,"baskswin","resizable=yes,scrollbars=yes,toolbar=no,location=no,directoties=no,status=no,menubar=no,width="+width+",height="+height);
}

function show_img(title,width,height,s_url){
	var imgnwin=window.open("","imgswin","resizable=yes,scrollbars=yes,toolbar=no,location=no,directoties=no,status=no,menubar=no,width="+width+",height="+height);
	imgnwin.document.write("<html><title>"+title+"</title><body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0><center><img src='"+s_url+"' border=0></center></body></html>")
}

function show_win(width,height,s_url){
	var p_top=(window.screen.height-height)/2, p_left=(window.screen.width-width)/2;
	var imgnwin=window.open(s_url,"imgswin","resizable=yes,scrollbars=yes,toolbar=no,location=no,directoties=no,status=no,menubar=no,width="+width+",height="+height+",top="+p_top+",left="+p_left);
	imgnwin.focus();
}

function active_win(surl){
	window.opener.document.location=surl;
}

function show_div(id_cur){
	var div_set=null;
	div_set=document.getElementById(id_cur);
	if (div_set!=null) {
		if (div_set.style.display=="block") div_set.style.display="none";
		else div_set.style.display="block";
	}
}

var div_count=10;
var timeout_hide=null;

function show_menu(name_obj){
	var obj=null;
	obj=document.getElementById(name_obj);
	if (obj!=null) {	hide_all();	show_set(); obj.style.visibility="visible"; }
}
function hide_div(obj) { if ( !obj.contains(window.event.toElement) ) obj.style.visibility="hidden"; }
function hide_set() {	timeout_hide=setTimeout("hide_all()",1000); }
function show_set() {	if (timeout_hide!=null) { clearTimeout(timeout_hide); timeout_hide=null; } }
function hide_all() { 
	for (var i=0; i<div_count; i++) 
		if (document.getElementById("m"+i)!=null) {
			document.all["m"+i].style.visibility="hidden"; 
		}
}      