var UserLogin=
{
 	SubmitForm:function()
	{
		return true;
	},
	ReIdentifyingCode:function()
	{
		$("#IdentifyingCodeImg")[0].src="/ArtronFrameWork/SiteCtrl/IdentifyingCode/IdentifyingCode.php?SessionKey=LoginIdentifyingCode&Num="+Site.ReturnRandNum();
	},
	ResetForm:function()
	{
		document.UserLoginForm.reset();
	}
}
$(document).ready(function(){
    $.formValidator.initConfig({formid:"UserLoginForm",onerror:function(msg){alert('请正确填写信息')},onsuccess:function(){UserRegister.SubmitForm()}});
    $("#UserName").formValidator({onshow:"&nbsp;",onfocus:"<img src='/images/0231.gif'/>",oncorrect:"<img src='/images/002.gif'/>"}).inputValidator({min:6,max:32,onerror:"<img src='/images/0151.gif'/>"}).regexValidator({regexp:"email",datatype:"enum",onerror:"<img src='/images/0151.gif'/>"});
    $("#PassWord").formValidator({onshow:"&nbsp;",onfocus:"<img src='/images/0151.gif'/>",oncorrect:"<img src='/images/002.gif'/>"}).inputValidator({min:1,empty:{leftempty:false,rightempty:false,emptyerror:"<img src='/images/0151.gif'/>"},onerror:"<img src='/images/0151.gif'/>"});
	$("#IdentifyingCode").formValidator({empty:false,onshow:"&nbsp;",onfocus:"<img src='/images/0231.gif'/>",oncorrect:"<img src='/images/002.gif'/>",onempty:"<img src='/images/0151.gif'/>"}).inputValidator({min:4,max:4,onerror:"<img src='/images/0151.gif'/>"})

});