function arc0f(showpg) { document.frmsearch.curpg.value=showpg; document.frmsearch.submit(); } function arc1f(showpg) { document.frm1.curpg.value=showpg; document.frm1.submit(); } function implementsearch() { 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 < 2;x++){ if (document.frmsearch.search[x].checked==1) {break;} } } if(x==0) { var strsearch ="http://search.indiatimes.com/indiatimessearch.cms?sitesearch=indiatimes.com"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } if(x==1) { var strsearch = "http://search.indiatimes.com/websearch.cms"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } return false ; }