// JavaScript Document
function openWin(src,width,height,left,top,scroll,resize) {
	if (left==null || left=="") left=(screen.width-width) / 2;
	if (top==null || top=="") top=(screen.height-height) / 2;
	if (scroll=="") scroll="yes";
	var win = window.open(src,"", "toolbar=no,scrollbars=yes,resizable="+resize+",location=no,status=no,width="+width+",height="+height+",left=" + left + ", top=" + top);
	win.focus();
}

function openPic(src,title,width,height,left,top) {
	if (window.pic!=null) window.pic.close();
	if (left==null) left=(screen.width-width) / 2;
	if (top==null) top=(screen.height-height) / 2;
	pic = window.open('','pic','width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',statusbar=0,menu=0');
	pic.focus();
	pic.document.open();
	pic.document.write("<html><head><title>" + title + "</title></head>");
	pic.document.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	pic.document.write("<a href='javascript:this.close()'><img src='" + src + "' border='0' width='" + width + "' height='" + height + "'></a>");
	pic.document.write("</body></html>");
	pic.document.close();
	return true;
}

function showLay(no) {
	document.getElementById("layer"+no).style.visibility = "visible";
}

function hideLay(no) {
	document.getElementById("layer"+no).style.visibility = "hidden";
}
