//window.onerror = function(){return true;} string.prototype.trim = function(){ return this.replace(/(^\s*)|(\s*$)/g, "");} function imagezoom(img,width,height) { var image=new image(); image.src=img.src; if(image.width>width||image.height>height) { w=image.width/width; h=image.height/height; if(w>h) { img.width=width; img.height=image.height/w; } else { img.height=height; img.width=image.width/h; } } } function imageopen(img) { window.open(img.src); } function ok3w_search(frm) { if(frm.q.value.trim()=="") { alert("请输入查询关键词。"); frm.q.focus() return false; } frm.action = "search.asp"; frm.bntsub.disabled = true; frm.submit(); } function setcwinheight(obj) { var cwin=obj; if (document.getelementbyid) { if (cwin && !window.opera) { if (cwin.contentdocument && cwin.contentdocument.body.offsetheight) cwin.height = cwin.contentdocument.body.offsetheight; else if(cwin.document && cwin.document.body.scrollheight) cwin.height = cwin.document.body.scrollheight; } } } function ocopy(a,type,str){ if(str=="" || str=="http://") { alert("该员工没有填写相关内容"); return false; } a.target="_blank"; if(type==1) a.href = str; if(type==2) a.href = "mailto:" + str; if(type==3) a.href = "tencent://message/?uin="+ str + "&site=im.qq.com&menu=yes"; } function ok3w_insertflash(base_url, focus_width, focus_height, swf_height, text_height, pics, links, texts) { document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); } function ok3w_marquee(rndid,strgd,width,height,speed) { document.write('
'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'+strgd+'
'); document.write('
'); if(speed==0) return; var speed = speed; var pro = document.getelementbyid(rndid); var pro1 = document.getelementbyid(rndid+"1"); var pro2 = document.getelementbyid(rndid+"2"); pro2.innerhtml=pro1.innerhtml; var mymar=setinterval(marquee,speed) pro.onmouseover=function() {clearinterval(mymar)} pro.onmouseout=function() {mymar=setinterval(marquee,speed)} function marquee() { var mm_mo = pro.offsetwidth - pro1.offsetwidth; if(mm_mo<0) mm_mo=0; if(pro2.offsetwidth-pro.scrollleft<=mm_mo) pro.scrollleft-=pro1.offsetwidth; else pro.scrollleft+=5; } } function get_validcode(dns) { var obj = document.getelementbyid("strvalidcode"); obj.src = dns+"inc/validcode.asp?rnd="+math.random(); }