function openP(width,height,name,text){
	win=window.open("openp.php?name="+name+"&text="+text+"&width="+width+"&height="+height+"","win","dependent=yes,height="+height+",width="+width+",location=no,menubar=no,scrollbars=no,resizable=yes,status=no,toolbar=no");
}

function openT(content){
	win=window.open('','','dependent=yes,height=480,width=640,location=no,menubar=no,resizable=yes');
	win.document.writeln('<body topmargin=0 leftmargin=0 bgcolor=#ffffff>'+content);
}


function show(d,img){
	document.all("Layer999").style.top=document.body.scrollTop+50;
	if(obj=document.all(d)){
		Imag.src=img;
		if(Imag.width>600)Imag.width=600;
		obj.style.display="";
		if(Imag.width>600)Imag.width=600;
	}
}
window.screen.width>800?leftmar=250:leftmar=250;
document.write("<div id='Layer999' style=\"position:absolute; display:'none'; width:200px; height:122px; z-index:1; border: 1px none #000000; left: " + leftmar + "; top: 50 \"><table cellpadding=0 cellspacing=0 border=2 align=center bordercolor=#FFCC33><tr><td style='cursor:hand'><img id=Imag src='images/loading.gif' onclick=Layer999.style.display='none';Imag.src='images/loading.gif' alt='µ¥»÷¹Ø±Õ'></td></tr></table></div>");



function newopen(str){window.open(str,"");}


function ok(select){
	if(select.options[select.selectedIndex].value!='#') {
 		window.open(select.options[select.selectedIndex].value,'_blank');
	}
}



if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function ok(select){
	if(select.options[select.selectedIndex].value!='#') {
		window.open(select.options[select.selectedIndex].value,'_blank');
	}
}