function AJAX(){var XMLHttp=false;var ObjSelf;ObjSelf=this;try{XMLHttp=new XMLHttpRequest;}
catch(e){try{XMLHttp=new ActiveXObject("MSXML2.XMLHttp");}
catch(e2){try{XMLHttp=new ActiveXObject("Microsoft.XMLHttp");}
catch(e3){XMLHttp=false;}}}
if(!XMLHttp)return false;this.method="POST";this.url=""
this.url+=(this.url.indexOf("?")>=0)?"&nowtime="+new Date().getTime():"?nowtime="+new Date().getTime();this.async=true;this.data="";ObjSelf.loadid=""
this.backtext=true
this.callback=function(){return;}
this.send=function(){if(!this.method||!this.url||!this.async)return false;XMLHttp.open(this.method,this.url,this.async);if(this.method=="POST"){XMLHttp.setRequestHeader("Content-Length",(this.data).length);XMLHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}
XMLHttp.onreadystatechange=function(){if(XMLHttp.readyState==4){if(ObjSelf.loadid!="")$CS(ObjSelf.loadid,"none");if(XMLHttp.status==200){ObjSelf.callback();}}
else{if(ObjSelf.loadid!="")$CS(ObjSelf.loadid,"block");}}
if(this.method=="POST")XMLHttp.send(this.data);else XMLHttp.send(null);}
this.gettext=function(){if(XMLHttp.readyState==4){if(XMLHttp.status==200){if(this.backtext==true){return XMLHttp.responseText;}else{return XMLHttp.responseXML;}}}}}
function $l(objID2) {return document.getElementById(objID2)}
function $F(objID2,html){$l(objID2).innerHTML=html;}
function getCookie(name){var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));if(arr != null) return unescape(arr[2]); return null;};function showadmin(){if(getCookie('waakuname')!=null){$F("adminnow","<a style='COLOR: red' href='http://www.waaku.com/postad.html' target='_blank'>管理中心</a>&nbsp;<a href='exit.html' style='COLOR: red'>退出登陆</a>&nbsp;");}};