         function loginInHead(){
           var loginaccount = jQuery("#loginaccount").val();
           var passwordTop = jQuery("#passwordTop").val();
           var verifycode = jQuery("#verifycodeTop").val();
            jQuery.ajax({
				url:realPath+'member_nologin/ajaxLogin.action',
				cache: false,
				type: "post",
				data:{loginaccount:loginaccount,password:passwordTop,verifycode:verifycode},
		 		dataType:"json",
		 		success: function(back){
		 			if(back.msg=="verifycode error"){
		 				alert("验证码错误。");
		 				jQuery("#verifycodeTop").val("");
		 				document.getElementById("verifycodeTop").focus();
		 			}else if(back.msg=="account error")
		 			{
		 				alert("用户名或密码错误。");
		 				jQuery("#passwordTop").val("");
		 				document.getElementById("passwordTop").focus();
		 			}else if(back.msg=="password error")
		 			{
		 				alert("用户名或密码错误。");
		 				jQuery("#passwordTop").val("");
		 				document.getElementById("passwordTop").focus();
		 			}
		 			if(back.success=="success"){
		 				var windowLocation = window.location.href;
		 				if(windowLocation.indexOf("getPassword.action")>=0){
		 					window.location.href=realPath+"index.html";
		 				}else{
		 					window.location.href=window.location.href;
		 				}
		 			}
				}
		    });
           }
           function headSubmit(){
         	loginInHead();         	
            return false;
           }
       
           function changeheadLicence(){
				document.getElementById('headLicence').src =realPath+"loginLicence?time="+new Date().getTime();
		   } 