function drop_mouseover(pos){ try{window.clearTimeout(timer);}catch(e){} } function drop_mouseout(pos){ var posSel=document.getElementById(pos+"Sel").style.display; if(posSel=="block"){ timer = setTimeout("drop_hide('"+pos+"')", 1000); } } function drop_hide(pos){ document.getElementById(pos+"Sel").style.display="none"; } function search_show(pos,searchType,href){ document.getElementById(pos+"SearchType").value=searchType; document.getElementById(pos+"Sel").style.display="none"; document.getElementById(pos+"Slected").innerHTML=href.innerHTML; document.getElementById(pos+'q').focus(); // if(searchType="bar"){ // } // var sE = document.getElementById("searchExtend"); // if(sE != undefined && searchType == "bar"){ // sE.style.display="block"; // } // else if(sE != undefined){ // sE.style.display="none"; // } try{window.clearTimeout(timer);}catch(e){} return false; } function dosearch(){ var searchType=document.getElementById("headSearchType").value; if(searchType=='fund'){ if(document.headSearchForm.fundcode.value==""){ alert("你的输入有误,请重新输入"); return; } window.open("http://supermarket.jjmmw.com/main/view/fundcode/"+document.headSearchForm.fundcode.value+".shtml") ; }else if(searchType=='level'){ if(document.headSearchForm.fundcode.value==""){ alert("你的输入有误,请重新输入!"); return; } window.open("http://surpass.jjmmw.com/cgi-bin/sailipper/SaiLevel?function=queryCommonResult&time=one_year&fundcode="+document.headSearchForm.fundcode.value) ; }else if(searchType=='ask'){ window.open(encodeURI("http://ask.jjmmw.com/cgi-bin/expert/expert_index?function=search&word="+document.headSearchForm.fundcode.value)); }else if(searchType=='news'){ window.open(encodeURI("http://news.jjmmw.com/cgi-bin/news/NewsCenter?function=searchByKey&search_key="+document.headSearchForm.fundcode.value)); }else if(searchType=='bar'){ window.open(encodeURI("http://bar.jjmmw.com/f,fund"+document.headSearchForm.fundcode.value+",p,1.html")); } }