function checkAttributeValue(e){var s,i=this.id;if($(i+"_msg").style.display="none","true"==this.isRequire&&(!this.value||0==this.value.length))return this.errorMessage.length>0?$(i+"_msg").innerHTML=this.errorMessage:$(i+"_msg").innerHTML=this.displayName+"����Ϊ��",$(i+"_msg").style.display="",!1;if(this.minNum>0&&this.value.length<this.minNum)return this.errorMessage.length>0?$(i+"_msg").innerHTML=this.errorMessage:$(i+"_msg").innerHTML=this.displayName+"���Ȳ���С��"+this.minNum+"���ַ�",$(i+"_msg").style.display="",!1;if(this.maxNum>0&&this.value.length>this.maxNum)return this.errorMessage.length>0?$(i+"_msg").innerHTML=this.errorMessage:$(i+"_msg").innerHTML=this.displayName+"���Ȳ��ܴ���"+this.maxNum+"���ַ�",$(i+"_msg").style.display="",!1;if(this.value&&this.value.length>0&&this.validateType&&"None"!=this.validateType)if("Custom"==this.validateType){if(this.regExp.length>0&&0==new RegExp(this.regExp,"gi").test(this.value))return this.errorMessage.length>0?$(i+"_msg").innerHTML=this.errorMessage:$(i+"_msg").innerHTML=this.displayName+"��ʽ����ȷ",$(i+"_msg").style.display="",!1}else if("Chinese"==this.validateType?s=/^[\u0391-\uFFE5]+$/:"English"==this.validateType?s=/^[A-Za-z]+$/:"Email"==this.validateType?s=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/:"Url"==this.validateType?s=/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/:"Phone"==this.validateType?s=/^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/:"Mobile"==this.validateType?s=/^((\(\d{3}\))|(\d{3}\-))?13\d{9}$/:"Integer"==this.validateType?s=/^[-\+]?\d+$/:"Currency"==this.validateType?s=/^\d+(\.\d+)?$/:"Zip"==this.validateType?s=/^[1-9]\d{5}$/:"IdCard"==this.validateType?s=/^\d{15}(\d{2}[A-Za-z0-9])?$/:"QQ"==this.validateType&&(s=/^[1-9]\d{4,11}$/),s&&0==s.test(this.value))return this.errorMessage.length>0?$(i+"_msg").innerHTML=this.errorMessage:$(i+"_msg").innerHTML=this.displayName+"��ʽ����ȷ",$(i+"_msg").style.display="",!1;return!0}function checkAttributeValueById(e){$(e+"_msg").style.display="none";var s,i=$(e);if("true"==i.isRequire&&(!i.value||0==i.value.length))return i.errorMessage.length>0?$(e+"_msg").innerHTML=i.errorMessage:$(e+"_msg").innerHTML=i.displayName+"����Ϊ��",$(e+"_msg").style.display="",!1;if(i.minNum>0&&i.value.length<i.minNum)return i.errorMessage.length>0?$(e+"_msg").innerHTML=i.errorMessage:$(e+"_msg").innerHTML=i.displayName+"���Ȳ���С��"+i.minNum+"���ַ�",$(e+"_msg").style.display="",!1;if(i.maxNum>0&&i.value.length>i.maxNum)return i.errorMessage.length>0?$(e+"_msg").innerHTML=i.errorMessage:$(e+"_msg").innerHTML=i.displayName+"���Ȳ��ܴ���"+i.maxNum+"���ַ�",$(e+"_msg").style.display="",!1;if(this.value&&this.value.length>0&&i.validateType&&"None"!=i.validateType)if("Custom"==i.validateType){if(i.regExp.length>0&&0==new RegExp(i.regExp,"gi").test(i.value))return i.errorMessage.length>0?$(e+"_msg").innerHTML=i.errorMessage:$(e+"_msg").innerHTML=i.displayName+"��ʽ����ȷ",$(e+"_msg").style.display="",!1}else if("Chinese"==i.validateType?s=/^[\u0391-\uFFE5]+$/:"English"==i.validateType?s=/^[A-Za-z]+$/:"Email"==i.validateType?s=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/:"Url"==i.validateType?s=/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/:"Phone"==i.validateType?s=/^((\(\d{3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}$/:"Mobile"==i.validateType?s=/^((\(\d{3}\))|(\d{3}\-))?13\d{9}$/:"Integer"==i.validateType?s=/^[-\+]?\d+$/:"Currency"==i.validateType?s=/^\d+(\.\d+)?$/:"Zip"==i.validateType?s=/^[1-9]\d{5}$/:"IdCard"==i.validateType?s=/^\d{15}(\d{2}[A-Za-z0-9])?$/:"QQ"==i.validateType&&(s=/^[1-9]\d{4,8}$/),s&&0==s.test(i.value))return i.errorMessage.length>0?$(e+"_msg").innerHTML=i.errorMessage:$(e+"_msg").innerHTML=i.displayName+"��ʽ����ȷ",$(e+"_msg").style.display="",!1;return!0}function checkFormValue(e){var s=!0;Form.getElements(this.id).each(function(e){"true"==e.isValidate&&0==checkAttributeValueById(e.id)&&(s=!1)}),0==s&&Event.stop(e)}function checkFormValueById(e){var s=!0;return Form.getElements(e).each(function(e){"true"==e.isValidate&&0==checkAttributeValueById(e.id)&&(s=!1)}),s}