/*
 * Compressed by JSA(www.xidea.org)
 */
function textStrCounter(_,A,$){if(_.length>$){A.value=0;return _.substring(0,$)}else{A.value=$-_.length;return""}}function textCounter($,A,_){if($.value.length>_){$.value=$.value.substring(0,_);A.value=0}else A.value=_-$.value.length}function getLen(B){var A=0;for(var _=0;_<B.length;_++){var $=B.charCodeAt(_);if($>=0&&$<=128)A=A+1;else A=A+2}return A}function Block(){$.blockUI({css:{border:"none",padding:"15px"},message:"<img src=\""+$("#ROOTURL").val()+"images/loading.gif\" />\u6b63\u5728\u8bfb\u53d6\u6570\u636e\uff0c\u8bf7\u7a0d\u5019......"})}function UnBlock(){$.unblockUI()}function isIE(){if(window.navigator.userAgent.toLowerCase().indexOf("msie")>=1)return true;else return false}function getTByName($){if(document.getElementById($)!=undefined)return document.getElementById($);else return document.getElementsByName($)[0]}function getInnerText($){if(!isIE())return document.getElementById($).textContent;else return document.getElementById($).innerText}function setInnerText(_,$){if(!isIE())document.getElementById(_).textContent=$;else document.getElementById(_).innerText=$}function setSelectValue(A,_){for(var $=0;$<A.options.length;$++)if(A.options[$].value==_){A.selectedIndex=$;return}}function CheckAll(_){var A=_.form.elements;for(var $=0;$<A.length;$++)if(A[$].type=="checkbox")if(A[$].disabled==true)A[$].checked=false;else A[$].checked=_.checked}function ClearSelect(_){for(var $=_.options.length-1;$>=0;$--)if(_.options[$])_.options[$]=null}function AddItem(A,$,_){if(_!=undefined){var B=new Option(_,$);A.options.add(B)}}function isNotInt(_){var $=/^[0-9]+[0-9]*]*$/;if(!$.test(_))return true;else return false}var FFextraHeight=0,FFextraWidth=0;if(window.navigator.userAgent.indexOf("Firefox")>=1)FFextraHeight=0;function ReSizeiFrame($){if($&&!window.opera){$.style.display="block";if($.contentDocument&&$.contentDocument.body.offsetHeight)$.height=$.contentDocument.body.offsetHeight+FFextraHeight;else if($.Document&&$.Document.body.scrollHeight)$.height=$.Document.body.scrollHeight}}