document.write("<DIV id='ShowReg' style='Z-INDEX: 3; FILTER: shadow(color=#333333,direction=135); WIDTH: 140px; POSITION: absolute; HEIGHT: 120px'></DIV>");
function fineTime(){
	var fd=new Date();
	var fmon=fd.getMonth()+1;
	var fyear=fd.getFullYear();
	var fday=fd.getDate();
	var fh=fd.getHours();
	var fm=fd.getMinutes();
	var fs=fd.getSeconds();
	document.all.vtimer.innerText = fyear + "年" + fmon + "月" + fday + "日 " + FormatNumber(fh) + ":" + FormatNumber(fm) + ":" + FormatNumber(fs);
	setTimeout("fineTime()",1000);  
}
function FormatNumber(n){
	if (n < 10)
    		return ("0" + n)
	else
    		return n
}
function NewReguser(){
	showdivs('/author/user_reg.asp',500,200,'注册通行证');	
}
function popOpen(url, nWindow, widths, heights, sOffset){
	if (document.all)
		var xMax = screen.width, yMax = screen.height;
	else
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			if (!nWindow || nWindow.closed)
				var xMax = screen.width, yMax = screen.height;
				var xOffset = (xMax - widths)/2, yOffset = (yMax - heights)/2;
				nWindow = window.open(url, nWindow, 'width='+widths+',height='+heights+', screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+',scrollbars='+sOffset+'');
				nWindow.focus();
}

function showdivs(furl,wh,hh,ttl){
	var iHtml = '';
	var xMax = document.body.clientWidth, yMax = document.body.clientHeight;
	var xOffset = (xMax - wh)/2, yOffset = (yMax - hh)/2; 
			iHtml +="<table border='0' cellspacing='0' cellpadding='0' class='bian' background='/newImg/divtopbg.gif'><tr>";
			iHtml +="<td><img src='/newImg/quote.gif' width='16' height='14' /> "+ttl+"</td><td align='right'><img src='/newImg/close.gif' width='16' height='14' onClick='parentHH()'/></td>";
  		iHtml +="</tr><tr>";
    	iHtml +="<td colspan='2'><IFRAME frameBorder=0 scrolling=no id=_2009422184016 name=_2009422184016 src='"+furl+"' style='HEIGHT: "+hh+"; WIDTH: "+wh+"; Z-INDEX: 1'></iframe></td>";
  		iHtml +="</tr></table>";
  		document.getElementById("ShowReg").innerHTML = iHtml;
  		document.getElementById("ShowReg").style.display = '';
  		document.getElementById("ShowReg").style.left = xOffset;
			document.getElementById("ShowReg").style.top = yOffset;
}
function parentHH(){
		if(top.document.getElementById("ShowReg").style.display == ''){
			top.document.getElementById("ShowReg").style.display = 'none';
		}else{
			top.document.getElementById("ShowReg").style.display = '';
		}
		document.getElementById("ShowReg").innerHTML ='';
}
function SetCookie(name,value){
    var Days = 30; 
    var exp  = new Date();
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name){
     var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;
}
function delCookie(name){
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval=getCookie(name);
    if(cval!=null) document.cookie= name + "="+cval+";expires="+exp.toGMTString();
}
function LoadMenuBg(){
	var stVal = getCookie('zywzzz_topm');
	if(stVal==null){stVal=1}
	if(stVal=='1'){
		document.getElementById('topmenu_1').style.background='url(_blank)';
		document.getElementById("topmenu_1").style.background="url('/images/c_on_l.gif')";
	}else{
		document.getElementById('topmenu_1').style.background='url(_blank)';
		document.getElementById("topmenu_1").style.background="url('/images/c_link_r2.gif')";
	}
	if(stVal=='2'){
		document.getElementById('topmenu_2').style.background='url(_blank)';
		document.getElementById("topmenu_2").style.background="url('/images/c_on.gif')";
	}else{
		document.getElementById('topmenu_2').style.background='url(_blank)';
		document.getElementById("topmenu_2").style.background="url('/images/c_link.gif')";
	}
	if(stVal=='3'){
		document.getElementById('topmenu_3').style.background='url(_blank)';
		document.getElementById("topmenu_3").style.background="url('/images/c_on.gif')";
	}else{
		document.getElementById('topmenu_3').style.background='url(_blank)';
		document.getElementById("topmenu_3").style.background="url('/images/c_link.gif')";
	}
	if(stVal=='4'){
		document.getElementById('topmenu_4').style.background='url(_blank)';
		document.getElementById("topmenu_4").style.background="url('/images/c_on.gif')";
	}else{
		document.getElementById('topmenu_4').style.background='url(_blank)';
		document.getElementById("topmenu_4").style.background="url('/images/c_link.gif')";
	}
	if(stVal=='5'){
		document.getElementById('topmenu_5').style.background='url(_blank)';
		document.getElementById("topmenu_5").style.background="url('/images/c_on.gif')";
	}else{
		document.getElementById('topmenu_5').style.background='url(_blank)';
		document.getElementById("topmenu_5").style.background="url('/images/c_link.gif')";
	}
	if(stVal=='6'){
		document.getElementById('topmenu_6').style.background='url(_blank)';
		document.getElementById("topmenu_6").style.background="url('/images/c_on.gif')";
	}else{
		document.getElementById('topmenu_6').style.background='url(_blank)';
		document.getElementById("topmenu_6").style.background="url('/images/c_link.gif')";
	}
	if(stVal=='7'){
		document.getElementById('topmenu_7').style.background='url(_blank)';
		document.getElementById("topmenu_7").style.background="url('/images/ES_C_Green2.gif')";
	}else{
		document.getElementById('topmenu_7').style.background='url(_blank)';
		document.getElementById("topmenu_7").style.background="url('/images/c_link_r.gif')";
	}
}

function ReadMenuBg(strVal){
	SetCookie('zywzzz_topm',strVal);
}
