function arc0f(showpg) { document.frmsearch.curpg.value=showpg; document.frmsearch.submit(); } function arc1f(showpg) { document.frm1.curpg.value=showpg; document.frm1.submit(); } function implementsearchet() { var searchtext=document.frmsearch.query.value; var x=-1; try{if(document.frmsearch.search.selectedIndex > -1) {x=document.frmsearch.search.selectedIndex;}} catch(err){} if (x < 0) {for(x=0;x < 3;x++){ if (document.frmsearch.search[x].checked==1) {break;} } } if (searchtext=='') { alert('Please insert text to search'); document.frmsearch.query.focus(); return false; } if(x==0) { var strsearch = "/search.cms"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } if(x==1) { var strsearch ="http://search.indiatimes.com/action1.cms?sitesearch=indiatimes.com"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } if(x==2) { var strsearch = "http://search.indiatimes.com/action.cms"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } return false ; }