function checkerLogin ( form, urlPassport )
{
	this.objSelf = "clsChkLogin";
	this.objForm = document.getElementById ( form );
	this.objMessage = document.getElementById ( "login_message" );
	this.urlPassport = urlPassport;

	this.CheckForm = function ()
	{
		if ( this.objForm.username.value == '' )
		{
			showMessage ( '請填寫您的帳號!', this.objMessage );
			this.objForm.username.focus ();
			return false;
		}
		if ( this.objForm.password.value == '' )
		{
			showMessage ( '請填寫您的登入密碼!', this.objMessage );
			this.objForm.password.focus ();
			return false;
		}
		/*		
		if ( this.objForm.code.value == '' )
		{
			showMessage ( '請填寫驗證碼, 驗證碼即輸入框右邊的彩色數字!', this.objMessage );
			this.objForm.code.focus ();
			return false;
		}
		*/
		this.objForm.submit ();
		return true;
	}
}
document.write ('<script type="text/javascript" src="http://passport.cmwebgame.com/showJsUserForEgame?callback=memberSession"></script>');
function login_to_mcsd(serverUrl){
	//alert("游戲維護中！");
	
	var url = serverUrl.substring(7);
	url = url.substring(0,url.indexOf("/"));
	
	var value = '<script type="text/javascript" src="http://passport.cmwebgame.com/checkServer.action?url=';
	value = value + url + '"></script>';
	document.write (value);
	var serverUrl = 'http://www.egame.hk/youxi/paycenter/trading_login.jsp';
	top.location.href = serverUrl + mcsd_parameter + "&service=" + url;
	
}
