Слияние кода завершено, страница обновится автоматически
/* Copyright (C) 楚涛 2008-2011 lxchutao@163.com QQ:290363711 http://blog.csdn.net/chutao */
var m_msgType=2,m_MessageId="MessageId",m_AttributeFlag=0,m_TrimFlag=0,m_split="|",m_Alert_Mode=0,m_msgAll="",m_input=null,m_inputNames=[],m_form;function initAllParams(){m_msgAll="";m_input=null;m_inputNames=[]}function verifyAll(a){initAllParams();try{if(m_msgType==1)return verifyAllType1(a);else if(m_msgType==3)return verifyAllType3(a);else return verifyAllType2(a)}catch(b){return CancelClientEvent()}}function loadAllChkInputs(b){try{for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;detachEventHandler(b.elements[a],"blur",verifyInputOnblur);attachEventHandler(b.elements[a],"blur",verifyInputOnblur);if(b.elements[a].getAttribute("valuerange",m_AttributeFlag)!=null)if(b.elements[a].getAttribute("showmenu",m_AttributeFlag)=="1"){detachEventHandler(b.elements[a],"focus",showSelectMenuOnEvent);attachEventHandler(b.elements[a],"focus",showSelectMenuOnEvent)}else if(b.elements[a].getAttribute("showmenu",m_AttributeFlag)=="2"){detachEventHandler(b.elements[a],"focus",showDropMenuOnEvent);attachEventHandler(b.elements[a],"focus",showDropMenuOnEvent);b.elements[a].setAttribute("notcheckvaluerange","true")}}}catch(d){}}window.$$=function(a){return document.getElementById(a)};function attachEventHandler(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else if(a.attachEvent)a.attachEvent("on"+b,c);else a["on"+b]=c}function detachEventHandler(a,b,c){if(a.removeEventListener)a.removeEventListener(b,c,false);else if(a.detachEvent)a.detachEvent("on"+b,c);else a["on"+sEventType]=null}function verifyAllExceptNullable(a){initAllParams();try{if(m_msgType==1)return verifyAllExceptNullableType1(a);else if(m_msgType==3)return verifyAllExceptNullableType3(a);else return verifyAllExceptNullableType2(a)}catch(b){return CancelClientEvent()}}function verifyAllByGroup(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroupType1(b,a);else if(m_msgType==3)return verifyAllGroupType3(b,a);else return verifyAllGroupType2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllByGroup1(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroup1Type1(b,a);else if(m_msgType==3)return verifyAllGroup1Type3(b,a);else return verifyAllGroup1Type2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllByGroup2(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroup2Type1(b,a);else if(m_msgType==3)return verifyAllGroup2Type3(b,a);else return verifyAllGroup2Type2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllByGroup3(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroup3Type1(b,a);else if(m_msgType==3)return verifyAllGroup3Type3(b,a);else return verifyAllGroup3Type2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllByGroup4(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroup4Type1(b,a);else if(m_msgType==3)return verifyAllGroup4Type3(b,a);else return verifyAllGroup4Type2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllByGroup5(b,a){initAllParams();try{if(m_msgType==1)return verifyAllGroup5Type1(b,a);else if(m_msgType==3)return verifyAllGroup5Type3(b,a);else return verifyAllGroup5Type2(b,a)}catch(c){return CancelClientEvent()}}function verifyAllOnblur(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;detachEventHandler(b.elements[a],"blur",verifyInputOnblur);attachEventHandler(b.elements[a],"blur",verifyInputOnblur)}}function verifyInputOnblur(){var a=arguments[0]||window.event,b=a.srcElement||a.target;checkInputNoFocus(b)}function showAllSelectMenu(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;if(b.elements[a].getAttribute("valuerange",m_AttributeFlag)!=null&&b.elements[a].getAttribute("showmenu",m_AttributeFlag)=="1"){detachEventHandler(b.elements[a],"focus",showSelectMenuOnEvent);attachEventHandler(b.elements[a],"focus",showSelectMenuOnEvent)}}}function showSelectMenuOnEvent(){var a=arguments[0]||window.event,b=a.srcElement||a.target;showSelectMenu(b)}function showSelectMenu(a){var i=0,j=1,c="chk_new_select_menudiv_1",e=0,h="";$$(c)&&document.body.removeChild($$(c));$$(c)&&document.body.removeChild($$(c));var b=document.createElement("div");b.id=c;b.className="chk_menuclass";b.style.position="absolute";b.style.zIndex=9999;b.style.overflow="auto";b.style.width=a.offsetWidth+"px";b.style.top=a.offsetHeight+getChkInputTop(a)+"px";b.style.left=getChkInputLeft(a)+"px";a.getAttribute("valuerange",m_AttributeFlag);var f=a.getAttribute("valuerange",m_AttributeFlag).split(m_split);if(f.length>25)b.style.height=500+"px";for(var g=0;g<f.length;g++){var d=document.createElement("div");d.innerHTML=f[g];if(a.value!=null&&a.value!=""&&a.value==f[g])d.style.fontWeight="bold";else d.style.fontWeight="";detachEventHandler(d,"mouseover",l);detachEventHandler(d,"mouseout",m);detachEventHandler(d,"mousedown",n);attachEventHandler(d,"mouseover",l);attachEventHandler(d,"mouseout",m);attachEventHandler(d,"mousedown",n);b.appendChild(d)}detachEventHandler(b,"mouseover",k);attachEventHandler(b,"mouseover",k);document.body.appendChild(b);detachEventHandler(a,"focus",o);detachEventHandler(a,"blur",q);detachEventHandler(a,"keyup",p);attachEventHandler(a,"focus",o);attachEventHandler(a,"blur",q);attachEventHandler(a,"keyup",p);function l(){var b=arguments[0]||window.event,c=b.srcElement||b.target;c.className="chk_menuclass_mouseover";if(a.getAttribute("notcheckvaluerange",m_AttributeFlag)!=null){e=1;h=a.getAttribute("notcheckvaluerange",m_AttributeFlag)}a.setAttribute("notcheckvaluerange","true")}function m(){var b=arguments[0]||window.event,c=b.srcElement||b.target;c.className="chk_menuclass_mouseout";if(e=1){e=0;a.setAttribute("notcheckvaluerange",h)}else a.removeAttribute("notcheckvaluerange")}function n(){var b=arguments[0]||window.event,d=b.srcElement||b.target;a.value=d.innerHTML;if(e=1){e=0;a.setAttribute("notcheckvaluerange",h)}else a.removeAttribute("notcheckvaluerange");$$(c)&&document.body.removeChild($$(c))}function k(){j=0}function q(){i=1;var a=$$(c);if(a&&j!=0){document.body.removeChild(a);return false}}function o(){i=0}function p(){if($$(c)){var b=$$(c).childNodes;if(b)for(var d=0;d<b.length;d++){var e=b[d].innerHTML.toUpperCase(),f=a.value.toUpperCase();if(a.value!=null&&a.value!=""&&e.indexOf(f)==-1)b[d].style.display="none";else{if(a.value!=null&&a.value!=""&&e.indexOf(f)!=-1)b[d].style.fontWeight="bold";else b[d].style.fontWeight="";b[d].style.display=""}}}}}function showAllDropMenu(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;if(b.elements[a].getAttribute("valuerange",m_AttributeFlag)!=null&&b.elements[a].getAttribute("showmenu",m_AttributeFlag)=="2"){detachEventHandler(b.elements[a],"focus",showDropMenuOnEvent);attachEventHandler(b.elements[a],"focus",showDropMenuOnEvent);b.elements[a].setAttribute("notcheckvaluerange","true")}}}function showDropMenuOnEvent(){var a=arguments[0]||window.event,b=a.srcElement||a.target;showDropMenu(b)}function showDropMenu(b){var e=0,f=1,c="chk_new_drop_menudiv_2";$$(c)&&document.body.removeChild($$(c));$$(c)&&document.body.removeChild($$(c));var a=document.createElement("div");a.id=c;a.className="chk_menuclass";a.style.position="absolute";a.style.zIndex=9999;a.style.overflow="auto";a.style.width=b.offsetWidth+"px";a.style.top=b.offsetHeight+getChkInputTop(b)+"px";a.style.left=getChkInputLeft(b)+"px";b.getAttribute("valuerange",m_AttributeFlag);var g=b.getAttribute("valuerange",m_AttributeFlag).split(m_split);if(g.length>25)a.style.height=500+"px";for(var h=0;h<g.length;h++){var d=document.createElement("div");d.innerHTML=g[h];detachEventHandler(d,"mouseover",k);detachEventHandler(d,"mouseout",l);attachEventHandler(d,"mouseover",k);attachEventHandler(d,"mouseout",l);a.appendChild(d)}detachEventHandler(a,"mouseover",i);detachEventHandler(a,"mouseout",j);attachEventHandler(a,"mouseover",i);attachEventHandler(a,"mouseout",j);document.body.appendChild(a);detachEventHandler(b,"focus",m);detachEventHandler(b,"blur",n);attachEventHandler(b,"focus",m);attachEventHandler(b,"blur",n);function k(){var a=arguments[0]||window.event,b=a.srcElement||a.target;b.className="chk_menuclass_mouseover"}function l(){var a=arguments[0]||window.event,b=a.srcElement||a.target;b.className="chk_menuclass_mouseout"}function i(){f=0}function j(){f=1;var a=$$(c);if(a&&e!=0){document.body.removeChild(a);return false}}function n(){e=1;var a=$$(c);if(a&&f!=0){document.body.removeChild(a);return false}}function m(){e=0}}function verifyAllType1(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllType2(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllType3(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllExceptNullableType1(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInputExceptNullable(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllExceptNullableType2(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInputExceptNullable(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllExceptNullableType3(b){for(var c=b.elements.length,a=0;a<c;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(verifyInputExceptNullable(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroupType1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroupType2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroupType3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup1Type1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group1",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroup1Type2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group1",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup1Type3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group1",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup2Type1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group2",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroup2Type2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group2",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup2Type3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group2",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup3Type1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group3",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroup3Type2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group3",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup3Type3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group3",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup4Type1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group4",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroup4Type2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group4",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup4Type3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group4",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup5Type1(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group5",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false){focusInput(b.elements[a]);CancelClientEvent();return false}}return true}function verifyAllGroup5Type2(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group5",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){chkAlert(m_msgAll);focusInput(m_input);CancelClientEvent();return false}return true}function verifyAllGroup5Type3(b,c){for(var d=b.elements.length,a=0;a<d;a++){if(b.elements[a].getAttribute("chinese",m_AttributeFlag)==null)continue;clearNotMatchInputClass(b.elements[a]);if(b.elements[a].getAttribute("group5",m_AttributeFlag)==c)if(verifyInput(b.elements[a])==false&&m_input==null)m_input=b.elements[a]}if(m_input!=null){showMsgInMessageId();focusInput(m_input);CancelClientEvent();return false}return true}function verifyInput(input){if(input.type=="checkbox"||input.type=="radio"){var v_msg=verifyInputByName(input.name);if(v_msg!=null&&v_msg!=""){notMatchInputClass(input);m_msgAll+=v_msg+"\n";m_msgType==1&&chkAlert(v_msg);return false}}else{var v_initialValue="";if(input.getAttribute("initialvalue",m_AttributeFlag)!=null)v_initialValue=input.getAttribute("initialvalue",m_AttributeFlag);if(input.getAttribute("nullable",m_AttributeFlag)=="no"&&(!isNull(checkTrim(input.value))||checkTrim(input.value)==v_initialValue)){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u4e0d\u80fd\u4e3a\u7a7a\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u4e0d\u80fd\u4e3a\u7a7a");return false}if(input.getAttribute("maxsize",m_AttributeFlag)!=null&&strlen(checkTrim(input.value))>parseInt(input.getAttribute("maxsize",m_AttributeFlag))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u957f,\u4e0d\u5e94\u8d85\u8fc7 "+input.getAttribute("maxsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("maxsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u957f,\u4e0d\u5e94\u8d85\u8fc7 "+input.getAttribute("maxsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("maxsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6");return false}if(input.getAttribute("minsize",m_AttributeFlag)!=null&&!(!isNull(checkTrim(input.value))||checkTrim(input.value)==v_initialValue)&&strlen(checkTrim(input.value))<parseInt(input.getAttribute("minsize",m_AttributeFlag))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u77ed,\u81f3\u5c11\u987b "+input.getAttribute("minsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("minsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u77ed,\u81f3\u5c11\u987b "+input.getAttribute("minsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("minsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6");return false}if(isNull(checkTrim(input.value))&&checkTrim(input.value)!=v_initialValue){switch(input.getAttribute("datatype",m_AttributeFlag)){case "number":if(isNumber(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6574\u6570\u6570\u5b57\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6574\u6570\u6570\u5b57");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "int":if(isInt(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "integer":if(isInt(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "float":if(isFloat(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6570\u5b57\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6570\u5b57");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "alphanumeric":if(isAlphanumeric(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u5408\u6cd5\u7684\u5305\u542b\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u5b57\u7b26\u4e32\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u5408\u6cd5\u7684\u5305\u542b\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u5b57\u7b26\u4e32");return false}break;case "idcard":if(isIDCard(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7");return false}break;case "date":if(isDate(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputDateValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "datetime":if(isDateTime(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputDateTimeValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "time":if(isTime(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65f6\u95f4\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65f6\u95f4\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputTimeValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "regular":var reg=eval("/"+input.getAttribute("regexpression",m_AttributeFlag)+"/");if(!reg.test(checkTrim(input.value))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+input.getAttribute("notmatchinfo",m_AttributeFlag)+"\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+input.getAttribute("notmatchinfo",m_AttributeFlag));return false}}if(isValueRange(input)==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5728\u5408\u6cd5\u7684\u8303\u56f4\u5185\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5728\u5408\u6cd5\u7684\u8303\u56f4\u5185");return false}}}return true}function verifyInputExceptNullable(input){var v_initialValue="";if(input.getAttribute("initialvalue",m_AttributeFlag)!=null)v_initialValue=input.getAttribute("initialvalue",m_AttributeFlag);if(input.getAttribute("maxsize",m_AttributeFlag)!=null&&strlen(checkTrim(input.value))>parseInt(input.getAttribute("maxsize",m_AttributeFlag))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u957f,\u4e0d\u5e94\u8d85\u8fc7 "+input.getAttribute("maxsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("maxsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u957f,\u4e0d\u5e94\u8d85\u8fc7 "+input.getAttribute("maxsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("maxsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6");return false}if(input.getAttribute("minsize",m_AttributeFlag)!=null&&!(!isNull(checkTrim(input.value))||checkTrim(input.value)==v_initialValue)&&strlen(checkTrim(input.value))<parseInt(input.getAttribute("minsize",m_AttributeFlag))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u77ed,\u81f3\u5c11\u987b "+input.getAttribute("minsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("minsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5185\u5bb9\u592a\u77ed,\u81f3\u5c11\u987b "+input.getAttribute("minsize",m_AttributeFlag)+" \u4e2a\u82f1\u6587\u5b57\u7b26\u7684\u957f\u5ea6\u6216 "+parseInt(input.getAttribute("minsize",m_AttributeFlag))/2+" \u4e2a\u6c49\u5b57\u7684\u957f\u5ea6");return false}if(isNull(checkTrim(input.value))&&checkTrim(input.value)!=v_initialValue){switch(input.getAttribute("datatype",m_AttributeFlag)){case "number":if(isNumber(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6574\u6570\u6570\u5b57\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6574\u6570\u6570\u5b57");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "int":if(isInt(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "integer":if(isInt(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u6574\u6570");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "float":if(isFloat(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6570\u5b57\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5168\u4e3a\u6570\u5b57");return false}else{var v_rangeMsg=verifyInputMaxMinValue(input);if(v_rangeMsg!=""){notMatchInputClass(input);m_msgAll+=v_rangeMsg+"\n";m_msgType==1&&chkAlert(v_rangeMsg);return false}}break;case "alphanumeric":if(isAlphanumeric(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+="\u503c\u5e94\u8be5\u4e3a\u5408\u6cd5\u7684\u5305\u542b\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u5b57\u7b26\u4e32\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u4e3a\u5408\u6cd5\u7684\u5305\u542b\u5b57\u6bcd\u548c\u6570\u5b57\u7684\u5b57\u7b26\u4e32");return false}break;case "idcard":if(isIDCard(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u8eab\u4efd\u8bc1\u53f7");return false}break;case "date":if(isDate(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputDateValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "datetime":if(isDateTime(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputDateTimeValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "time":if(isTime(checkTrim(input.value))==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65f6\u95f4\u683c\u5f0f\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65f6\u95f4\u683c\u5f0f");return false}else{var v_temp_msg=verifyInputTimeValue(input);if(v_temp_msg!=""){notMatchInputClass(input);m_msgAll+=v_temp_msg+"\n";m_msgType==1&&chkAlert(v_temp_msg);return false}}break;case "regular":var reg=eval("/"+input.getAttribute("regexpression",m_AttributeFlag)+"/");if(!reg.test(checkTrim(input.value))){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+input.getAttribute("notmatchinfo",m_AttributeFlag)+"\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+input.getAttribute("notmatchinfo",m_AttributeFlag));return false}}if(isValueRange(input)==false){notMatchInputClass(input);m_msgAll+=input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5728\u5408\u6cd5\u7684\u8303\u56f4\u5185\n";m_msgType==1&&chkAlert(input.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5728\u5408\u6cd5\u7684\u8303\u56f4\u5185");return false}}return true}function verifyInputByName(c){for(var d="",e=0;e<m_inputNames.length;e++)if(m_inputNames[e]==c)return;var a=document.getElementsByName(c),b=0,f=0;if(a[0].type=="checkbox"||a[0].type=="radio"){for(b=0;b<a.length;b++)if(a[b].checked)f++;if(a[0].getAttribute("chinese",m_AttributeFlag)!=null&&a[0].getAttribute("nullable",m_AttributeFlag)=="no")if(f<1)d=a[0].getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u9009\u62e9";else if(a[0].type=="checkbox")if(f-a[0].getAttribute("chkminselct",m_AttributeFlag)<0)d=a[0].getAttribute("chinese",m_AttributeFlag)+"\u9009\u62e9\u9879\u4e0d\u80fd\u5c11\u4e8e "+a[0].getAttribute("chkminselct",m_AttributeFlag)+" \u9879"}m_inputNames.push(c);return d}function getVerifyMsg(){return m_msgAll}function getMsgType(){return m_msgType}function setMsgType(a){m_msgType=a}function jtrim(e){var b=new String(e),a,c,d;if(b==null)b="";for(a=0;a<b.length;a++)if(b.charAt(a)!=" "&&b.charAt(a)!="\t"){c=a;break}for(a=b.length-1;a>=0;a--)if(b.charAt(a)!=" "&&b.charAt(a)!="\t"){d=a;break}var f=e.substring(c,d+1);return f}function checkTrim(a){if(m_TrimFlag==1)return a;else return jtrim(a)}function isInt(c){var a=parseInt(c,10),b=0;if(a>0)b=Math.ceil(c)-a;else b=Math.floor(c)-a;if(Math.abs(a)<new Number(Number.MAX_VALUE)&&b==0)return true;return false}function isFloat(c){var b,a,d,e;d=false;e=c.length;if(c.length<1)return true;for(b=0;b<c.length;b++){a=c.charAt(b);if(!(a>="0"&&a<="9")&&a!="."&&a!="-"&&a!="+")return false;if((a=="-"||a=="+")&&b>0)return false;if(a==".")switch(b){case 0:return false;break;default:if(b==e-1)return false;if(d)return false;else d=true}}return true}function strlen(c){var b,a;a=0;for(b=0;b<c.length;b++)if(c.charCodeAt(b)>255)a+=2;else a++;return a}function length(a){a=jtrim(a);return strlen(a)}function isNull(a){if(a.length<1)return false;return true}function isNumber(a){if(a.length<1)return true;for(var c="1234567890",b=0;b<a.length;b++)if(c.indexOf(a.charAt(b))==-1)return false;return true}function isAlphanumeric(b){var a=/[a-zA-Z0-9]/;if(a.test(b))return true;else return false}function isIDCard(b){var a=/^\d{17}(x|X)$|^\d{18}$|^\d{15}$/;if(a.test(b))return true;else return false}function isDate(b){var a=/^(\d{1,4})(-|\/|.)(\d{1,2})\2(\d{1,2})$/;if(a.test(b))return true;else return false}function isDateTime(b){var a=/^(\d{1,4})(-|\/|.)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;if(a.test(b))return true;else return false}function isTime(b){var a=/(\d{1,2}):(\d{1,2}):(\d{1,2})$/;if(a.test(b))return true;else return false}function isValueRange(a){if(a.getAttribute("valuerange",m_AttributeFlag)!=null){if(a.getAttribute("notcheckvaluerange",m_AttributeFlag)=="true")return true;for(var c=a.getAttribute("valuerange",m_AttributeFlag).split(m_split),d=checkTrim(a.value),b=0;b<c.length;b++)if(c[b]==d)return true;return false}else return true}function verifyInputMaxMinValue(a){var c="",b=checkTrim(a.value);if(a.getAttribute("maxvalue",m_AttributeFlag)!=null&&a.getAttribute("minvalue",m_AttributeFlag)!=null){if((b-a.getAttribute("maxvalue",m_AttributeFlag)>=0||b-a.getAttribute("minvalue",m_AttributeFlag)<=0)&&"true"==a.getAttribute("notequalmax",m_AttributeFlag)&&"true"==a.getAttribute("notequalmin",m_AttributeFlag))c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5728 ("+a.getAttribute("minvalue",m_AttributeFlag)+","+a.getAttribute("maxvalue",m_AttributeFlag)+") \u4e4b\u95f4";else if((b-a.getAttribute("maxvalue",m_AttributeFlag)>=0||b-a.getAttribute("minvalue",m_AttributeFlag)<0)&&"true"==a.getAttribute("notequalmax",m_AttributeFlag))c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5728 ["+a.getAttribute("minvalue",m_AttributeFlag)+","+a.getAttribute("maxvalue",m_AttributeFlag)+") \u4e4b\u95f4";else if((b-a.getAttribute("maxvalue",m_AttributeFlag)>0||b-a.getAttribute("minvalue",m_AttributeFlag)<=0)&&"true"==a.getAttribute("notequalmin",m_AttributeFlag))c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5728 ("+a.getAttribute("minvalue",m_AttributeFlag)+","+a.getAttribute("maxvalue",m_AttributeFlag)+"] \u4e4b\u95f4";else if(b-a.getAttribute("maxvalue",m_AttributeFlag)>0||b-a.getAttribute("minvalue",m_AttributeFlag)<0)c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5728 ["+a.getAttribute("minvalue",m_AttributeFlag)+","+a.getAttribute("maxvalue",m_AttributeFlag)+"] \u4e4b\u95f4"}else if(a.getAttribute("maxvalue",m_AttributeFlag)!=null){if(b-a.getAttribute("maxvalue",m_AttributeFlag)>=0&&"true"==a.getAttribute("notequalmax",m_AttributeFlag))c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5e94\u8be5\u5927\u4e8e\u7b49\u4e8e "+a.getAttribute("maxvalue",m_AttributeFlag);else if(b-a.getAttribute("maxvalue",m_AttributeFlag)>0)c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5e94\u8be5\u5927\u4e8e "+a.getAttribute("maxvalue",m_AttributeFlag)}else if(a.getAttribute("minvalue",m_AttributeFlag)!=null){if(b-a.getAttribute("minvalue",m_AttributeFlag)<=0&&"true"==a.getAttribute("notequalmin",m_AttributeFlag))c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5e94\u8be5\u5c0f\u4e8e\u7b49\u4e8e "+a.getAttribute("minvalue",m_AttributeFlag);else if(b-a.getAttribute("minvalue",m_AttributeFlag)<0)c=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u4e0d\u5e94\u8be5\u5c0f\u4e8e "+a.getAttribute("minvalue",m_AttributeFlag)}else c="";return c}function verifyInputDateValue(a){var b="",g=checkTrim(a.value);if(a.getAttribute("comparecurrent",m_AttributeFlag)!=null){var e=a.getAttribute("comparecurrent",m_AttributeFlag),f=new Date,c=g.split("-");if(!(c.length>2)){c=g.split("/");if(!(c.length>2)){b=a.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u683c\u5f0f";return b}}var d=new Date(c[0],c[1]-1,c[2]);if(e=="1"){if(!(d<f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u5f53\u524d\u65e5\u671f"}else if(e=="2"){if(!(d>f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u5f53\u524d\u65e5\u671f"}else if(e=="3"){if(!(d<=f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u7b49\u4e8e\u5f53\u524d\u65e5\u671f"}else if(e=="4"){if(!(d>=f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u7b49\u4e8e\u5f53\u524d\u65e5\u671f"}else b=""}return b}function verifyInputDateTimeValue(a){try{var b="",j=checkTrim(a.value);if(a.getAttribute("comparecurrent",m_AttributeFlag)!=null){var e=a.getAttribute("comparecurrent",m_AttributeFlag),f=new Date,i=j.split(" "),h=i[0],g=i[1].split(":"),c=h.split("-");if(!(c.length>2)){c=h.split("/");if(!(c.length>2)){b=a.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f";return b}}var d=new Date(c[0],c[1]-1,c[2],g[0],g[1],g[2]);if(e=="1"){if(!(d<f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(e=="2"){if(!(d>f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(e=="3"){if(!(d<=f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u7b49\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(e=="4"){if(!(d>=f))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u7b49\u4e8e\u5f53\u524d\u65f6\u95f4"}else b=""}return b}catch(k){}}function verifyInputTimeValue(a){try{var b="",h=checkTrim(a.value);if(a.getAttribute("comparecurrent",m_AttributeFlag)!=null){var d=a.getAttribute("comparecurrent",m_AttributeFlag),g=new Date,e=g.getHours()*3600+g.getMinutes()*60+g.getSeconds(),f=h.split(":");if(!(f.length>2)){b=a.getAttribute("chinese",m_AttributeFlag)+"\u5fc5\u987b\u662f\u6b63\u786e\u7684\u65f6\u95f4\u683c\u5f0f";return b}var c=f[0]*3600+f[1]*60+f[2]*1;if(d=="1"){if(!(c<e))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(d=="2"){if(!(c>e))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(d=="3"){if(!(c<=e))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5c0f\u4e8e\u7b49\u4e8e\u5f53\u524d\u65f6\u95f4"}else if(d=="4"){if(!(c>=e))b=a.getAttribute("chinese",m_AttributeFlag)+"\u503c\u5e94\u8be5\u5927\u4e8e\u7b49\u4e8e\u5f53\u524d\u65f6\u95f4"}else b=""}return b}catch(i){}}function focusInput(a){if(a.type=="text"||a.type=="textarea"){a.focus();a.select()}else a.focus()}function showMsgInMessageId(){var a=m_msgAll;while(a.search("\n")!=-1)a=a.replace("\n","<br>");document.getElementById(m_MessageId).innerHTML=a}function notMatchInputClass(a){if(a.type=="checkbox"||a.type=="radio"){for(var c=document.getElementsByName(a.name),b=0;b<c.length;b++)if(c[b].getAttribute("notmatchclass",m_AttributeFlag)!=null){c[b].setAttribute("oldclassname",c[b].className,m_AttributeFlag);c[b].className=c[b].getAttribute("notmatchclass",m_AttributeFlag)}}else if(a.getAttribute("notmatchclass",m_AttributeFlag)!=null){a.setAttribute("oldclassname",a.className);a.className=a.getAttribute("notmatchclass",m_AttributeFlag)}}function clearNotMatchInputClass(a){if(a.type=="checkbox"||a.type=="radio"){for(var c=document.getElementsByName(a.name),b=0;b<c.length;b++)if(c[b].getAttribute("notmatchclass",m_AttributeFlag)!=null&&c[b].getAttribute("notmatchclass",m_AttributeFlag)==c[b].className)if(c[b].getAttribute("oldclassname",m_AttributeFlag)!=null)c[b].className=c[b].getAttribute("oldclassname");else c[b].className=""}else if(a.getAttribute("notmatchclass",m_AttributeFlag)!=null&&a.getAttribute("notmatchclass",m_AttributeFlag)==a.className)if(a.getAttribute("oldclassname",m_AttributeFlag)!=null)a.className=a.getAttribute("oldclassname");else a.className=""}function chkAlert(a){if(m_Alert_Mode=="0")alert(a);else alert(a)}function GetFileSize(b){try{var e=new ActiveXObject("Scripting.FileSystemObject"),c=Math.round(e.GetFile(b).Size);return c}catch(a){var d=a.number&65535;d==429&&chkAlert("\u6d4f\u89c8\u5668\u8bbe\u7f6e\u53d7\u9650\uff0c\u8bf7\u6309\u4e0b\u9762\u7684\u6b65\u9aa4\u8bbe\u7f6e\uff1a\n1\u3001\u63a7\u5236\u9762\u677f -> Internet\u9009\u9879 -> \u5b89\u5168 -> Internet -> \u81ea\u5b9a\u4e49\u7ea7\u522b ->\u5b89\u5168\u8bbe\u7f6e\u7684 ActiveX \u63a7\u4ef6\u548c\u63d2\u4ef6 -> \u5bf9\u6ca1\u6709\u6807\u8bb0\u4e3a\u5b89\u5168\u7684ActiveX \u63a7\u4ef6\u8fdb\u884c\u521d\u59cb\u5316\u548c\u811a\u672c\u8fd0\u884c \u9009\u4e2d\u201c\u542f\u7528\u201d\uff0c\u5e76\u786e\u5b9a.\n2\u3001\u63a7\u5236\u9762\u677f -> Internet\u9009\u9879 -> \u5b89\u5168 -> \u672c\u5730 Intranet -> \u81ea\u5b9a\u4e49\u7ea7\u522b ->\u5b89\u5168\u8bbe\u7f6e\u7684 ActiveX \u63a7\u4ef6\u548c\u63d2\u4ef6 -> \u5bf9\u6ca1\u6709\u6807\u8bb0\u4e3a\u5b89\u5168\u7684ActiveX \u63a7\u4ef6\u8fdb\u884c\u521d\u59cb\u5316\u548c\u811a\u672c\u8fd0\u884c \u9009\u4e2d\u201c\u542f\u7528\u201d\uff0c\u5e76\u786e\u5b9a. ")}}function CancelClientEvent(){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}return false}function checkInputNoFocus(a){clearNotMatchInputClass(a);var b=getMsgType();setMsgType(1);if(a.getAttribute("ischeckinstant",m_AttributeFlag)!="false")if(!verifyInput(a)){setMsgType(b);return false}setMsgType(b);return true}function checkInputExceptNullableNoFocus(b){clearNotMatchInputClass(b);var a=getMsgType();setMsgType(1);if(!verifyInputExceptNullable(b)){setMsgType(a);return false}setMsgType(a);return true}function checkInput(a){clearNotMatchInputClass(a);var b=getMsgType();setMsgType(1);if(!verifyInput(a)){focusInput(a);setMsgType(b);return false}setMsgType(b);return true}function checkInputExceptNullable(a){clearNotMatchInputClass(a);var b=getMsgType();setMsgType(1);if(!verifyInputExceptNullable(a)){focusInput(a);setMsgType(b);return false}setMsgType(b);return true}function getChkInputTop(c){var b=c.offsetTop,a=c.offsetParent;while(a!=null){b=b+a.offsetTop;a=a.offsetParent}return b}function getChkInputLeft(c){var b=c.offsetLeft,a=c.offsetParent;while(a!=null){b=b+a.offsetLeft;a=a.offsetParent}return b}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )