	function login(){
				document.getElementById('loginBox').style.display="block";
				document.getElementById('loginBox').style.visibility = "visible";
				document.getElementById('loginBox').style.zIndex = "900";
				document.getElementById('loginBox').style.left = 200 + "px";
				document.getElementById('loginBox').style.top = 200 + "px";
				document.getElementById('loginBox').style.backgroundColor = "#F4F4F4";
				document.getElementById('loginBox').style.border = "1px solid #EEEEEE";
				document.getElementById('loginBox').style.padding = "10px";
	}
 	function hiddenElement(){
 		 
  	document.getElementById('loginBox').style.visibility = "hidden";
  	 		
  }
  function turn_login(){
  	window.top.location.href="http://blog.21cn.com/u/register/";
  	}
  function loginWrite(){
  	  var loginPosition ="<div id=\"loginBox\" style=\"position:absolute; display:none\" nowrap>" +
				"&nbsp;&nbsp; 请您登录后再操作 <form action=\"http://poll.21cn.com/jsp/user/logonVerify.jsp\" name=\"logon\" method=\"post\">" +
				"&nbsp;&nbsp; 帐  号: <input name=\"UserName\" type=\"text\" size=\"17\" maxlength=\"255\"/><br>&nbsp;&nbsp; 密  码: " +
				"<input name=\"Password\" type=\"password\" size=\"17\" maxlength=\"20\"/><br>&nbsp;&nbsp; " +
				"<div align=\"center\"><input type=\"button\" value=\"提交\" onclick=\"loginAction()\">" +
				"<input type=\"button\" value=\"取消\" onClick=\"document.getElementById('loginBox').style.visibility='hidden'\">" +
				"<input type=\"button\" value=\"一分钟注册\" onClick=\"turn_login()\">"+
				"</div></form>	</div>"
		//	alert(loginPosition);
				document.write(loginPosition);
				
  }
  function loginAction()
{
	var loc_url = window.top.location.href;
	document.logon.target = "_top";
	document.logon.action = "http://blog.21cn.com/jsp/file/user/logonVerify.jsp?returnUrl="+loc_url;
	document.logon.submit();
}
 
  	
		