<!--
	function $(name)
	{
		return document.getElementById(name);
	}
//	function trim(str)
//	{
//	    if(str == null) return "" ;
//	    while( str.charAt(0)  == ' ' )
//	    {
//	        str = str.substring(1,str.length);
//	    }
//	    while( str.charAt(str.length-1)  == ' ' )
//	    {
//	        str = str.substring(0,str.length-1);
//	    }
//	    return str ;
//	}
	
	function login()
	{
		var useraccount = $("useraccount").value;
//		if(""==trim(useraccount))
//		{
//			alert="用户名不能为空";
//			return ;
//		}
//		var userPassword = $("userPassword").value;
//		if(""==trim(userPassword))
//		{
//			alert="密码不能为空";
//			return;
//		}
		//LoginCoreAjax.userLogin(useraccount,userPassword,loginResultAction);
		document.getElementById("user_login").submit();
	}
	function top_logout(){
		$("user_logout").submit();
	}
	
	
//	
//	function loginResultAction(date)
//	{
//		if("input"==date)
//		{
//			alert("帐号或者密码不正确");
//			return ;
//		}
//		if("error"==date)
//		{
//			alert("服务器繁忙");
//			return ;
//		}
//		if("success"==date)
//		{
//			window.location.href="index.jsp";
//		}
//		else
//		{
//			window.location.href=date;
//		}
//	}
	
//-->

function toMyspace(){
	var web_url = document.getElementById("web_url").value;
	document.getElementById("ms").href = web_url + "/code/myspace/";
	//window.location.href = "myspace/";
}
function _void(){}