anchor.diff:  	<meta name="decorator" content="default"/>
   	<script type="text/javascript">
   		$(document).ready(function() {
  +
  +//            jQuery.validator.addMethod("sss", function(value, element) {
  +//				return value!='';
  +//            }, "bankName不可为空！");
  +
  +            jQuery.validator.addMethod("isspec", function(value, element) {
  +                var reg = /^\d{1,9}(\.\d{1,4})?$/;
  +                return  reg.test(value);
  +            }, "请输入最多4位小数的14位数值！");
  +
               $("#no").focus();
               $("#inputForm").validate({
   
                   rules: {
  -                    bankCode: {remote: "${ctx}/cw/fAccount/checkBankCode?id="+$("#id").val()}
  -
  +                    bankCode: {remote: "${ctx}/cw/fAccount/checkBankCode?id="+$("#id").val()},
  +                    accountBalance:{
  +                        isspec :true
  +                    },
  +//                    bankName:{sss:true},
  +//                    bankCode:{sss:true},
                   },
   
                   messages: {
                       bankCode: {remote: "银行卡号已存在"},
                   },
                   submitHandler: function(form){
  +
  +
  +
  +
                       loading('正在提交，请稍等...');
                       form.submit();
                   },
  
positive.code: 	</ul><br/>
  	<form:form id="inputForm" modelAttribute="fAccount" action="${ctx}/cw/fAccount/save" method="post" class="form-horizontal">
  		<form:hidden path="id"/>
  		<sys:message content="${message}"/>		
  		<div class="control-group">
  			<label class="control-label">账户名称：</label>
  			<div class="controls">
  				<form:input path="name" htmlEscape="false" maxlength="100" class="input-xlarge "/>
  			</div>
  		</div>
  		<div class="control-group">
  			<label class="control-label">开户行：</label>
  			<div class="controls">
  				<form:input path="bankName" htmlEscape="false" maxlength="100" class="input-xlarge "/>
  			</div>
  		</div>
  		<div class="control-group">
  			<label class="control-label">银行卡号：</label>
  			<div class="controls">
  				<form:input path="bankCode" htmlEscape="false" maxlength="100" class="input-xlarge "/>
  			</div>
  		</div>
  		<div class="control-group">
  			<label class="control-label">帐户余额：</label>
  			<div class="controls">
  				<form:input path="accountBalance" htmlEscape="false" class="input-xlarge "/>
  			</div>
  		</div>
  		<div class="control-group">
  			<label class="control-label">账户类型：</label>
  			<div class="controls">
  				<form:input path="accountType" htmlEscape="false" maxlength="1" class="input-xlarge required"/>
  				<span class="help-inline"><font color="red">*</font> </span>
  			</div>
  		</div>
  		<div class="control-group">
  			<label class="control-label">备注：</label>
  			<div class="controls">
  				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
  			</div>
  		</div>
  		<div class="form-actions">
  
negative.code: 				}
  			});
  		});
          function hide(){
              var accountType=document.getElementById("accountType").value;
              if(accountType!="1"){
                  document.getElementById("DbankName").style.visibility = "hidden";
                  document.getElementById("DbankName").style.height = "1px";
                  document.getElementById("DbankCode").style.visibility = "hidden";
                  document.getElementById("DbankCode").style.height = "1px";
                  $("#bankName").removeClass("required");
                  $("#bankCode").removeClass("required");
              }else if(accountType="1"){
                  document.getElementById("DbankName").style.visibility = "visible";
                  document.getElementById("DbankName").style.height = "30px";
                  document.getElementById("DbankCode").style.visibility = "visible";
                  document.getElementById("DbankCode").style.height = "30px";
                  $("#bankName").attr("class","required");
                  $("#bankCode").attr("class","required");
              }else if(accountType=""){
                  document.getElementById("DbankName").style.visibility = "hidden";
                  document.getElementById("DbankName").style.height = "1px";
                  document.getElementById("DbankCode").style.visibility = "hidden";
                  document.getElementById("DbankCode").style.height = "1px";
                  $("#bankName").removeClass("required");
                  $("#bankCode").removeClass("required");
              }
  
          }
  	</script>
  </head>
  <body>
  