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;
	}
}

