function showGraph(mrkt) { var objbse = document.getElementById("dvBSE"); var objnse = document.getElementById("dvNSE"); if(mrkt == "NSE") { objnse.style.visibility = "visible"; objnse.style.display = "" objbse.style.visibility = "hidden"; objbse.style.display = "none" document.getElementById("n").innerHTML = "NSE"; document.getElementById("b").innerHTML = "BSE"; } else { objbse.style.visibility = "visible"; objbse.style.display = "" objnse.style.visibility = "hidden"; objnse.style.display = "none" document.getElementById("b").innerHTML = "BSE"; document.getElementById("n").innerHTML = "NSE"; } } function changetab(obj,divid) { var iCtr=0; var divObj=document.getElementById(divid); if (window.ActiveXObject) { for(iCtr=0;iCtr Loading'; str_temp = str_temp + ''; //document.getElementById(''+frmid).contentWindow.document.body.innerHTML=str_temp; document.getElementById(''+frmid).contentWindow.document.write(str_temp); document.getElementById(''+frmid).src = urlval } catch (e) { } } function populatediv_withFunc(urlval,divval) { try { //CHECKING VALUE OF xmlhttp IS TRUE checkhttp(); if (xmlhttp) { //checking the state of http object xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4) { if (xmlhttp.status==200) { if(document.getElementById(divval).style.display == "none") { document.getElementById(divval).style.display = "inline"; } document.getElementById(divval).innerHTML=xmlhttp.responseText; dd_date(); dd_month(); dd_year(); } else if (xmlhttp.status==404) status=0 else status=0 } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } } catch (e) { } } function hideDiv(idDiv) { document.getElementById(idDiv).style.display = "none"; } function calOffSet(idDiv) { if (window.innerHeight) { pos = window.pageYOffset } else if (document.documentElement && document.documentElement.scrollTop) { pos = document.documentElement.scrollTop } else if (document.body) { pos = document.body.scrollTop } document.getElementById(idDiv).style.top = pos + 10; } function ManageGoogleimg(cmbid,divid) { var GetDivId; GetDivId=document.getElementById(divid); if(cmbid.options[cmbid.selectedIndex].text =="Indiatimes" || cmbid.options[cmbid.selectedIndex].text=="Web") { GetDivId.style.visibility="visible"; document.getElementById(divid).style.display="inline"; } else { GetDivId.style.visibility="hidden"; document.getElementById(divid).style.display="none"; document.getElementById(divid + "_td").style.width ="2px"; } } function ManageGoogleimgbottom(srchcmb,divid) { var GetDivId; GetDivId=document.getElementById(divid); if(srchcmb.options[srchcmb.selectedIndex].text =="Indiatimes" || srchcmb.options[srchcmb.selectedIndex].text=="Web") GetDivId.style.visibility="visible"; else GetDivId.style.visibility="hidden"; } var cookiestring,sUser,sUserLength, mstatus1,addr,findpos,findposLength; function getCookievalue1(strcookie) { var ipos = cookiestring.indexOf(strcookie); var ipos2 = cookiestring.indexOf(';',ipos); if (ipos != -1) { if (ipos2 == -1) ipos2 = cookiestring.length; return unescape(cookiestring.substring((ipos+strcookie.length+1),ipos2));} } addr = document.URL; addr1 = document.URL; try { cookiestring= document.cookie; cookiestring = cookiestring.toLowerCase(); sUser = getCookievalue1('commlogu'); sUserLength = sUser.length; mstatus1 = getCookievalue1('cmssso'); numero= 999999.9999 inRandom = Math.round((Math.random() * numero+ 0.5)); } catch(er) { cookiestring=' '; sUserLength=0; } function clippopup(msid) { //alert("X"); if ((cookiestring.indexOf('commlogp') != -1) && (sUserLength > 0) && (mstatus1 == 'true') ) { var popupurl1='http://economictimes.indiatimes.com/insertclipping/msid-'+msid+',random-'+ inRandom +'.cms'; window.open(popupurl1,'Clippings','toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=0,width=350,height=160,top="0",left="0",maximize=null'); } else { try { findpos = getCookievalue1('arc'); findposLength = findpos.length; } catch(er) { findposLength =0; } if((findpos != '0') && (findposLength > 1)) { document.cookie = 'arc=0'; } else { document.cookie = 'arc=' + escape(msid); } } } function openWindowmail(url) { so = window.open(url,'Indiatimes','height=431,width=559,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0'); } function changesrc(msid,msname,story,mediatype) { if (mediatype==26) { extn='WMV'; } if (mediatype==12) { extn='WAV'; } if (mediatype==13) { extn='WMA'; } if (mediatype==14) { extn='AVI'; } if (mediatype==4) { extn='MP3'; } if (mediatype==5) { extn='MPG'; } if (mediatype==6) { extn='DAT'; } if (mediatype==9) { extn='SWF'; } strvideo=''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; strvideo=strvideo + ''; document.all.video.innerHTML=strvideo; } function getUserID() { var cookiestring1= document.cookie; cookiestring1 = cookiestring.toLowerCase(); function getCookievalue1(strcookie) { var iipos = cookiestring1.indexOf(strcookie); var iipos2 = cookiestring1.indexOf(';',iipos); if (iipos != -1) { if (iipos2 == -1) iipos2 = cookiestring1.length; return unescape(cookiestring1.substring((iipos+strcookie.length+1),iipos2)); } } sUser1 = getCookievalue1('commlogu'); vmstatus=getCookievalue1('cmssso'); if( (sUser1 != "" || sUser1 != "undefined") && (vmstatus == 'true')) { return sUser1; } else { sUser1=""; } return sUser1; } function watchlistdisplayurl() { if (!getUserID() == "") { return "/mywatchlist.cms?userid="+getUserID(); } else { return "/topgainerlooser_wlst.cms?group=&exchange=n&type=gainer&page=0&msgshow=1"; } } function pfoliosumarydispurl() { if (getUserID() == "") { return "/myportfolio.cms?type=2"; } else { return "/myportfolio.cms?type=1"; } } function watchlistdiaplay() { if (!getUserID() == "") { populatediv(watchlistdisplayurl(),'watch_list'); } else { populatediv(watchlistdisplayurl(),'watch_list'); } } function watchlistdiaplay_new() { if (!getUserID() == "") { populatediv(watchlistdisplayurl_new(),'watch_list'); } else { populatediv(watchlistdisplayurl_new(),'watch_list'); } } function watchlistdisplayurl_new() { if (!getUserID() == "") { return "/testmywatchlist.cms?userid="+getUserID(); } else { return "testmywatchlist.cms?ltype=login"; } } function openindwind(path,width,height) { window.open(path,'Mobile','height='+height+',width='+width+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0'); } function submitmyformp(f) { var ch=0; for(i=0;i -1) { qString = qString.substr(qString.indexOf('?'+ key)) ; } else if (qString.indexOf('&'+ key) > -1) { qString = qString.substr(qString.indexOf('&'+ key)) ; } else { return ""; } qString = qString.split('=')[1]; qString = qString.split('&')[0]; return unescape(qString); } function showCompName(divobj) { var celmts = divobj.childNodes; for(i=0;i -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(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/websearch.cms?type=0"; document.frmsearch.action=strsearch; document.frmsearch.submit(); } return false ; } function clipWindow1(xx){ if(xx==1){ window.open('http://economictimes.indiatimes.com/showclips.cms','Clippings','height=400,width=550,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=0'); }else if(xx==2){ alert("please login to view the clippings page"); } } /* FILE ARCHIVED ON 05:37:37 Feb 22, 2010 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 09:49:38 Oct 28, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 40.39 (3) esindex: 0.005 captures_list: 54.104 CDXLines.iter: 9.554 (3) PetaboxLoader3.datanode: 58.691 (4) exclusion.robots: 0.125 exclusion.robots.policy: 0.118 RedisCDXSource: 2.19 PetaboxLoader3.resolve: 22.071 load_resource: 99.848 */