var isie = /msie/.test(navigator.useragent.tolowercase()); var isw3c =typeof document.compatmode != 'undefined' && document.compatmode != 'backcompat'?true:false; function stoperror() { return true; } window.onerror = stoperror; function getcookie(name) { var cookie_start = document.cookie.indexof(name); var cookie_end = document.cookie.indexof(";", cookie_start); return cookie_start == -1 ? '' : unescape(document.cookie.substring(cookie_start + name.length + 1, (cookie_end > cookie_start ? cookie_end : document.cookie.length))); } function setcookie(cookiename, cookievalue, seconds, path, domain, secure) { seconds = seconds ? seconds : 8400000; var expires = new date(); expires.settime(expires.gettime() + seconds); document.cookie = escape(cookiename) + '=' + escape(cookievalue) + (expires ? '; expires=' + expires.togmtstring() : '') + (path ? '; path=' + path : '/') + (domain ? '; domain=' + domain : '') + (secure ? '; secure' : ''); } function insertflash(flash,vars,width,height,id,box){ var flashhtml=''; flashhtml+=''; flashhtml+=''; flashhtml+=''; flashhtml+=''; flashhtml+=''; flashhtml+=''; flashhtml+=''; $(flashhtml).appendto(box); } function pageheight(){ if($.browser.msie){ return document.compatmode == "css1compat"? document.documentelement.clientheight : document.body.clientheight; }else{ return self.innerheight; } } function pagewidth(){ if($.browser.msie){ return document.compatmode == "css1compat"? document.documentelement.clientwidth : document.body.clientwidth; }else{ return self.innerwidth; } } function in_array(k,arr){ for(var i=0;i这里下载!','im_info'); }else if(o[1]=='ioerror'){ printchat('文件“'+filename+'”的下载地址已失效','im_info'); }else if(o[1]=='close'){ //printchat('','im_info'); }else if(o[1]=='cancel'){ printchat('您取消了文件“'+filename+'”的下载','im_info'); }else if(o[1]=='ok'){ printchat('文件“'+filename+'”下载完毕','im_info'); } } function eventcheck(){ try{ var execstrs=$('#eventbox').html(); $('#eventbox').html(''); if(execstrs.length>0){ eval(execstrs); } }catch(e){} }