document.write('
'); function cklist(l1) { var i1 = ''; return i1; }; function menu() { var sfels = document.getelementbyid("menu").getelementsbytagname("li"); for (var i = 0; i < sfels.length; i++) { sfels[i].onmouseover = function() { this.classname += (this.classname.length > 0 ? " ": "") + "sfhover"; } sfels[i].onmousedown = function() { this.classname += (this.classname.length > 0 ? " ": "") + "sfhover"; } sfels[i].onmouseup = function() { this.classname += (this.classname.length > 0 ? " ": "") + "sfhover"; } sfels[i].onmouseout = function() { this.classname = this.classname.replace(new regexp("( ?|^)sfhover\\b"), ""); } } } function check(obj) { for (var i = 0; i < obj.form.list.length; i++) { if (obj.form.list[i].checked == false) { obj.form.list[i].checked = true; } else { obj.form.list[i].checked = false; } }; if (obj.form.list.length == undefined) { if (obj.form.list.checked == false) { obj.form.list.checked = true; } else { obj.form.list.checked = false; } } } function checkall(obj) { for (var i = 0; i < obj.form.list.length; i++) { obj.form.list[i].checked = true }; if (obj.form.list.length == undefined) { obj.form.list.checked = true } } function checkno(obj) { for (var i = 0; i < obj.form.list.length; i++) { obj.form.list[i].checked = false }; if (obj.form.list.length == undefined) { obj.form.list.checked = false } } function gm(url, id, obj) { if (obj.options[obj.selectedindex].value != "" || obj.options[obj.selectedindex].value != "-") { var i1 = escape(obj.options[obj.selectedindex].value); var isconfirm; if (i1 == 'delete') { isconfirm = confirm(k_delete); } else { isconfirm = true }; if (i1 != '-') { var verbs = "submits=" + i1 + "&list=" + escape(getchecked()); //选择框提交命令 if (isconfirm) { posthtm(url, id, verbs); } } } if (obj.options[obj.selectedindex].value) { obj.options[0].selected = true; } } function getchecked() { var strcheck; strcheck = ""; for (var i = 0; i < document.form1.list.length; i++) { if (document.form1.list[i].checked) { if (strcheck == "") { strcheck = document.form1.list[i].value; } else { strcheck = strcheck + ',' + document.form1.list[i].value; } } } if (document.form1.list.length == undefined) { if (document.form1.list.checked == true) { strcheck = document.form1.list.value; } } return strcheck; } //load *** copyright © kingcms.com all rights reserved *** function load(id) { var doc = document.getelementbyid(id); if (id == 'aja' || id == 'flo') { if (id == 'aja') { //document.body.scrolltop var widthaja = (document.documentelement.scrollwidth - 680 - 30) / 2; doc.style.left = widthaja + 'px'; doc.style.top = (document.documentelement.scrolltop + 90) + 'px'; doc.innerhtml = '
loading...













loading...
'; } else { var widthflo = (document.documentelement.scrollwidth - 360 - 30) / 2; doc.style.left = widthflo + 'px'; doc.style.top = (document.documentelement.scrolltop + 190) + 'px'; if (is != 0) { doc.innerhtml = '
loading...
loading...
'; } } } else { doc.innerhtml = ''; } } //posthtm *** copyright © kingcms.com all rights reserved *** function posthtm(url, id, verbs, is) { //is null or 1 var doc = document.getelementbyid(id); load(id); // doc.innerhtml='loading...'; var xmlhttp = false; if (doc != null) { doc.style.visibility = "visible"; if (doc.style.visibility == "visible") { xmlhttp = ajax_driv(); xmlhttp.open("post", url, true); xmlhttp.setrequestheader("if-modified-since", "thu, 01 jan 1970 00:00:00 gmt"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readystate == 4) { if (is || is == null) { doc.innerhtml = xmlhttp.responsetext; } else { var data = {}; data = eval('(' + xmlhttp.responsetext + ')'); doc.innerhtml = data.main; eval(data.js); }; } } xmlhttp.setrequestheader("content-length", verbs.length); xmlhttp.setrequestheader("content-type", "application/x-www-form-urlencoded"); xmlhttp.send(verbs); } } } //gethtm *** copyright © kingcms.com all rights reserved *** function gethtm(url, id, is) { var doc = document.getelementbyid(id); load(id); var xmlhttp = false; if (doc != null) { doc.style.visibility = "visible"; if (doc.style.visibility == "visible") { xmlhttp = ajax_driv(); xmlhttp.open("get", url, true); xmlhttp.setrequestheader("if-modified-since", "thu, 01 jan 1970 00:00:00 gmt"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readystate == 4) { if (is || is == null) { doc.innerhtml = xmlhttp.responsetext; } else { eval(xmlhttp.responsetext); }; } } xmlhttp.send(null); } } } //getdom *** copyright © kingcms.com all rights reserved *** function getdom(url) { var xmlhttp = false; var i1; xmlhttp = ajax_driv(); xmlhttp.open("get", url, true); xmlhttp.setrequestheader("if-modified-since", "thu, 01 jan 1970 00:00:00 gmt"); xmlhttp.onreadystatechange = function() { if (xmlhttp.readystate == 4) { i1 = xmlhttp.responsetext; } } xmlhttp.send(null); return i1; } //display *** copyright © kingcms.com all rights reserved *** function display(id) { var doc = document.getelementbyid(id); if (doc != null) { doc.style.visibility = "hidden"; } } //ajax_driv *** copyright © kingcms.com all rights reserved *** function ajax_driv() { var xmlhttp; if (window.activexobject) { /* 不要删除以下注释,这部分不是注释 */ /*@cc_on @*/ /*@if (@_jscript_version >= 5) try { xmlhttp = new activexobject("msxml2.xmlhttp"); } catch (e) { try { xmlhttp = new activexobject("microsoft.xmlhttp"); } catch (e) { xmlhttp = false; } } @end @*/ } else { xmlhttp = new xmlhttprequest(); } if (!xmlhttp && typeof xmlhttprequest != 'undefined') { xmlhttp = new xmlhttprequest(); } return xmlhttp; } //readcookie *** copyright © kingcms.com all rights reserved *** function readcookie(l1) { //一维数组直接写值即可,二维数组用垂直线分开 var i1 = ""; if (l1.indexof("|") != -1) { //包含垂直线,是二维cookie var i2 = l1.split("|"); var i3 = i_readcookie(i2[0], document.cookie); i1 = i_readcookie(i2[1], i3); } else { //一维数组 if (document.cookie.length > 0) { i1 = i_readcookie(l1, document.cookie) } } return i1; } //i_readcookie *** copyright © kingcms.com all rights reserved *** function i_readcookie(l1, l2) { var cookievalue = ""; var search = l1 + "="; if (l2.length > 0) { offset = l2.indexof(search); if (offset != -1) { offset += search.length; end = l2.indexof(";", offset); if (end == -1) end = l2.length; cookievalue = unescape(l2.substring(offset, end)) } } return cookievalue; }