function picover(obj){ obj.style.filter=""; } function picout(obj){ obj.style.filter="gray"; } //去掉前后空格 function trim(str){ return str.replace(/(^\s*)|(\s*$)/g,''); } function findisok(obj){ if(obj.keyword.value==""){ alert("请输入要搜索的关键字!"); obj.keyword.focus(); return false; } return true; } function openpage(url,width,height){ left=(screen.width-width)/2; top2=(screen.height-height)/2-30; window.open(url,"","scrollbars=no,left="+left+",top="+top2+",height="+height+",width="+width); } function swf(name,width,height,transparent){ document.write(""); document.write(""); document.write(""); document.write(""); if(transparent==1) document.write(""); document.write(""); document.write(""); } function guanggao(width,height,pic,names,links){ document.write('
'); var so = new SWFObject("images/focus.swf", "focus", width, height, "7", "#000"); so.addParam('wmode','transparent'); so.addVariable("picurl",pic); so.addVariable("pictext",names); so.addVariable("piclink",links); so.addVariable("pictime","5"); so.addVariable("borderwidth",width); so.addVariable("borderheight",height); so.addVariable("borderw","false"); so.addVariable("buttondisplay","true"); so.addVariable("textheight","0"); so.write("focus"); } function DrawImage(ImgD,w,h){ xwidth=w; xheight=h; var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ flag=true; if(image.width/image.height>= xwidth/xheight){ if(image.width>xwidth){ ImgD.width=xwidth; ImgD.height=(image.height*xwidth)/image.width; }else{ ImgD.width=image.width; ImgD.height=image.height; } } else{ if(image.height>xheight){ ImgD.height=xheight; ImgD.width=(image.width*xheight)/image.height; }else{ ImgD.width=image.width; ImgD.height=image.height; } } } } function switchMenu(curr_id, total_num) { for(var i=0; i