var CategoryDialogArgs; function ShowCategoryDialog(txt1,val1,txt2,val2,txt3,val3) { CategoryDialogArgs = {"txt1":txt1,"val1":val1,"txt2":txt2,"val2":val2,"txt3":txt3,"val3":val3}; if(window.showModalDialog) { window.showModalDialog("http://biz.mainone.com/DLG/Category/index.htm", CategoryDialogArgs, "dialogWidth:800px; dialogHeight:600px; status:0; help:0; scroll:no"); } else { var win = window.open("http://biz.mainone.com/DLG/Category/index.htm","","left=200,top=200,width=800,height=570,menubar=no,toolbar=no,dependent=yes,chrome=yes,modal=yes"); } } function GetCategoryDialogVal() { return CategoryDialogArgs; } var OnCategoryReturn; //全选 function SelAllCheck(tabID) { var Tab = document.getElementById(tabID); if(Tab == null ) return; var chks = Tab.getElementsByTagName("input"); if(chks == null ) return; for(i=0;i maxlimit) field.value = field.value.substring(0, maxlimit); else document.getElementById(ShowObj).value = maxlimit - field.value.length; } function MyTrim(s) { var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/); return (m == null) ? "" : m[1]; } var mylastclsid = null; if(!window.XMLHttpRequest) { function getXmlHttp(clsid) { var xmlHttp = null; try { xmlHttp = new ActiveXObject(clsid); mylastclsid = clsid; return xmlHttp; } catch(ex) {} } window.XMLHttpRequest = function() { if(mylastclsid != null) { return getXmlHttp(mylastclsid); } var xmlHttp = null; var clsids = ["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP.2.6","Microsoft.XMLHTTP.1.0","Microsoft.XMLHTTP.1","Microsoft.XMLHTTP"]; for(var i=0; i