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://www.365zs.com.cn/DLG/Category/index.htm", CategoryDialogArgs, "dialogWidth:800px; dialogHeight:600px; status:0; help:0; scroll:no"); } else { var win = window.open("http://www.365zs.com.cn/DLG/Category/index.htm","","left=200,top=200,width=800,height=570,menubar=no,toolbar=no,dependent=yes,chrome=yes,modal=yes"); } } function ShowCategoryDialogSupply(txt1,val1) { CategoryDialogArgs = {"txt1":txt1,"val1":val1}; if(window.showModalDialog) { window.showModalDialog("http://www.365zs.com.cn/DLG/CategorySupply/index.htm", CategoryDialogArgs, "dialogWidth:800px; dialogHeight:600px; status:0; help:0; scroll:no"); } else { var win = window.open("http://www.365zs.com.cn/DLG/CategorySupply/index.htm","","left=200,top=200,width=800,height=570,menubar=no,toolbar=no,dependent=yes,chrome=yes,modal=yes"); } } if(!String.trim) { String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g,""); } } function DLG_SelectDate(obj) { var oldDate = obj.value; var strData = window.showModalDialog("http://www.365zs.com.cn/DLG/Calendar/dlg_cal.htm",oldDate,"dialogHeight: 279px; dialogWidth: 330px;edge: Raised; center: Yes; help: no; resizable: no; status: no;"); if (strData!=-1) obj.value=strData; } function SelectColor(obj) { var arr = showModalDialog("http://www.365zs.com.cn/DLG/Color/selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0; help:0"); if (arr != null) obj.value = arr; } var oldHTML = ""; var objTxt; function ShowHtmlEditor2(obj) { oldHTML = obj.value; objTxt = obj; var feature = "height=500,width=570,left=" + (window.screen.width-500)/2 + ",top=" + (window.screen.height-500)/2 + ",menubar=no,scrollbars=yes"; window.open("http://www.365zs.com.cn/DLG/HtmlEditor/index.htm","HtmlEditor",feature); } function GetHtmlValue() { return oldHTML; } function SetHtmlValue(str) { if(objTxt) { objTxt.value = str; } } //ȫѡ function SelAllCheck(tabID) { var Tab = document.getElementById(tabID); if(Tab == null ) return; var chks = Tab.getElementsByTagName("input"); if(chks == null ) return; if(chks.length) { for(i=0;i