document.write('
');
function cklist(l1){var i1='';return i1;};
function menu(){var sfels = document.getelementbyid("menu").getelementsbytagname("li");
for (var i=0;i0? " ": "") + "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
loading...
';}
else
{
var widthflo=(document.documentelement.scrollwidth-360-30)/2;
doc.style.left=widthflo+'px';
doc.style.top=(document.documentelement.scrolltop+190)+'px';
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","0");
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","0");
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.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;
}