var strvideo; var extn; var Colordivstatus='false'; function showlayer(popup,sts){ if(sts == "close"){ document.getElementById('t').style.display="none"; document.getElementById('b').style.display="none";}} function setHomepage(what, url){ if (navigator.appName == 'Microsoft Internet Explorer' && document.getElementById) setHomepageExplorer(what, url); else if (document.layers || document.getElementById) setHomepageNetscape(what, url); return false;} function setHomepageNetscape(what, url){ var warn = 'Due to Netscapes security handling, making Times of India ' + 'your homepage, will show you a dialog with a warning.' + 'If you do not wish to grant this site the access to ' + 'your browser settings, you can manually copy ' + 'http://timesofindia.indiatimes.com and paste it in the location field in ' + 'Edit|Preferences|Navigator.'; if (confirm(warn)){ netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite"); navigator.preference('browser.startup.homepage', url);netscape.security.PrivilegeManager.disablePrivilege("UniversalPreferencesWrite");}} function setHomepageExplorer(what, url){ what.style.behavior = 'url(#default#homepage)'; what.setHomePage(url);} 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 tabshowhide(id){ if(id=='l1'){ document.getElementById('l1').className = 'current'; document.getElementById('l2').className = ''; document.getElementById('tabcontent1').style.display = 'block'; document.getElementById('tabcontent2').style.display = 'none';} if(id=='l2'){ document.getElementById('l2').className = 'current'; document.getElementById('l1').className = ''; document.getElementById('tabcontent2').style.display = 'block'; document.getElementById('tabcontent1').style.display = 'none';} if(id=='l3'){ document.getElementById('l3').className = 'current'; document.getElementById('l4').className = ''; document.getElementById('l5').className = ''; document.getElementById('tabcontent3').style.display = 'block'; document.getElementById('tabcontent4').style.display = 'none'; document.getElementById('tabcontent5').style.display = 'none';} if(id=='l4'){ document.getElementById('l4').className = 'current'; document.getElementById('l3').className = ''; document.getElementById('l5').className = ''; document.getElementById('tabcontent4').style.display = 'block'; document.getElementById('tabcontent3').style.display = 'none'; document.getElementById('tabcontent5').style.display = 'none';} if(id=='l5'){ document.getElementById('l5').className = 'current'; document.getElementById('l4').className = ''; document.getElementById('l3').className = ''; document.getElementById('tabcontent5').style.display = 'block'; document.getElementById('tabcontent4').style.display = 'none'; document.getElementById('tabcontent3').style.display = 'none';}} function submitmyforma(f){ f.target = 'foo'; window.open('',f.target,'menubar=no,scrollbars=0, width=521,height=325'); f.submit(); return false;} function topnav(f){ window.open('',f.target,'menubar=no,scrollbars=0, width=521,height=325'); return false;} 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 < 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?fromtimesofindia=1&sitesearch=indiatimes.com"; document.frmsearch.action=strsearch; document.frmsearch.submit();} if(x==2){ var strsearch = "http://search.indiatimes.com/action.cms?fromtimesofindia=1"; document.frmsearch.action=strsearch; document.frmsearch.submit();} return false ;} function implementsearch_web(){ 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/websearch.cms?fromtimesofindia=1&sitesearch=indiatimes.com"; alert(strsearch); document.frmsearch.action=strsearch; document.frmsearch.submit();} if(x==2){ var strsearch = "/websearch.cms"; alert(strsearch); document.frmsearch.action=strsearch; document.frmsearch.submit();} return false ;} 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";} function submitmyformp(f){ var ch=0; for(i=0;i Loading'; str_temp = str_temp + ''; document.getElementById(divval).innerHTML = str_temp; xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ //checking the state of http object xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ alert(xmlhttp.responseText); document.getElementById(divval).innerHTML=xmlhttp.responseText;} else if (xmlhttp.status==404) status=0 else status=0}} xmlhttp.open("GET",urlval,true); xmlhttp.send(null);}} catch (e){ xmlhttp = false;}} function tabtop(obj,divid){ var iCtr=0; var divObj=document.getElementById(divid); if (window.ActiveXObject){ for(iCtr=0;iCtr'; 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 openindwindnm(path,name){ window.location.href=path;} function mailtrim(mvalue){ var temp1 = mvalue; var obj = /^(\s*)([\W\w]*)(\b\s*$)/; if (obj.test(temp1)) temp1 = temp1.replace(obj, '$2'); var obj = / /g; while (temp1.match(obj)) { temp1 = temp1.replace(obj, " "); } return temp1;} function changeForm(){ if(mailtrim(document.marketform.ticker1.value)==false){ alert('Please enter any symbol'); document.marketform.ticker1.value=""; document.marketform.ticker1.focus(); return false;} else{ var c = escape(document.marketform.ticker1.value); document.marketform.ticker.value = c; document.marketform.action="http://economictimes.indiatimes.com/currentquote.cms"; document.marketform.ticker1.value = ""; return true;}} function flashpopup(){ window.open('/flashshow.cms','mywindow','menubar=no,scrollbars=0, width=460,height=340');} 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 Set_Cookie(cCurrent,cLast) { currentStart = document.cookie.indexOf(cCurrent+"="); lastStart = document.cookie.indexOf(cLast+"="); if((currentStart == -1) || (lastStart == -1)) { document.cookie = cCurrent+"="+toinavpath+";path=/;"; document.cookie = cLast+"="+toinavpath+";path=/;"; cCurrentVal = toinavpath; cLastVal = toinavpath; } else { if((currentStart != -1) && (cCurrent == document.cookie.substr(currentStart,cCurrent.length))) { currentStart = currentStart + cCurrent.length + 1; currentEnd = document.cookie.indexOf(";",currentStart); if (currentEnd == -1) currentEnd = document.cookie.length; cCurrentVal = unescape(document.cookie.substring(currentStart,currentEnd)) } if ((lastStart != -1) && (cLast == document.cookie.substr(lastStart,cLast.length))) { lastStart = lastStart + cLast.length + 1; lastEnd = document.cookie.indexOf(";",lastStart); if (lastEnd == -1) lastEnd = document.cookie.length; cLastVal = unescape(document.cookie.substring(lastStart,lastEnd)) } } if (cLastVal != toinavpath) { document.cookie=cLast+"="+cCurrentVal+";path=/;"; document.cookie=cCurrent+"="+toinavpath+";path=/;"; cLastVal = cCurrentVal; cCurrentVal = toinavpath; } objImage = new Image(1,1); objImage.src = "http://adstil.indiatimes.com/RealMedia/ads/adstream.cap?rand=%%REALRAND%%&c=TOIBT&va=" + cLastVal ; } function broadbandpopup(url, hgt, wdt){ var tvmarg = screen.width; var ttvmarg = 100; var tvs_width = 0; var tvs_height = 0; tvs_width = wdt; tvs_height = hgt; tvmarg = tvmarg -(tvs_width+50); if (navigator.appName=='Netscape') { tvow=eval("window.open('"+url+"','so','toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=0,width="+tvs_width+",height="+tvs_height+",top="+ttvmarg+",left="+tvmarg+",maximize=null')") } else { tvow=eval("window.open('"+url+"','so','toolbar=0,scrollbars=0,location=0,status=0,menubars=0,resizable=0,width="+tvs_width+",height="+tvs_height+",top="+ttvmarg+",left="+tvmarg+",maximize=null')") } if (tvow.opener == null) tvow.opener = self; tvow.focus(); } function submitmyformp_NewPoll(f){ var ch=0; for(i=0;i 0) && (mstatus1 == 'true')) window.open('http://timesofindia.indiatimes.com/showclips.cms','Clippings','height=400,width=575,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1'); else window.open('http://timesofindia.indiatimes.com/login.cms?TferURL=http://timesofindia.indiatimes.com/showclips.cms','',''); } //formoviereview listing page start function Quote_blank() { document.marketform.ticker11.value =""; } function showdata() { var selected_month = document.frmReview.ddmonth.value; if (selected_month == 1) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=1' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 2) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=2' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 3) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=3' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 4) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=4' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 5) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=5' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 6) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=6' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 7) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=7' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 8) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=8' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 9) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=9' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 10) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=10' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 11) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=11' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } else if(selected_month == 12) { populatediv('/moviearticlelistdatewise.cms?msid='+a+'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value+'&type=12' ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } } function Shownext(varMsid,varCurpg) { populatediv('/moviearticlelistdatewise.cms?msid='+varMsid+'&curpg='+ varCurpg +'&month='+ document.frmReview.ddmonth.value+'&year='+ document.frmReview.ddyear.value ,'datewise'); document.getElementById('article').style.display="none"; document.getElementById('article').style.visibility="hidden"; } function showdivlayer(msid,divid,sts,status) { SetCookie_toi('tabs',divid); if(divid=='datewise') { document.getElementById('alphabetical').style.visibility="visible"; document.getElementById('datewise').style.visibility="hidden"; document.getElementById('alphabetical').style.display="inline"; document.getElementById('datewise').style.display="none"; if(status == 'no') { document.getElementById('article').style.visibility="visible"; document.getElementById('article').style.display="inline"; populatediv('/moviereviewarticle/'+a+'.cms','article') populatediv('/moviearticlelistalphabet/'+a+'.cms','alphabetical'); } else { if(aa != 'null' && aa != '') { populatediv('/moviearticlelistalphabet/'+a+'.cms?defalpha='+aa,'alphabetical'); document.getElementById('article').style.visibility="hidden"; document.getElementById('article').style.display="none"; } else { populatediv('/moviearticlelistalphabet/'+a+'.cms','alphabetical'); document.getElementById('article').style.visibility="visible"; document.getElementById('article').style.display="inline"; populatediv('/moviereviewarticle/'+a+'.cms','article') } } } else { document.getElementById('datewise').style.visibility="visible"; document.getElementById('alphabetical').style.visibility="hidden"; document.getElementById('datewise').style.display="inline"; document.getElementById('alphabetical').style.display="none"; document.getElementById('article').style.visibility="hidden"; populatediv('/moviearticlelistdatewise/'+a+'.cms','datewise'); document.getElementById('article').style.display="inline"; document.getElementById('article').style.visibility="visible"; populatediv('/moviereviewarticle/'+a+'.cms','article'); } } function SetCookie_toi(sName,sValue) { document.cookie = sName + "=" + escape(sValue); } //formoviereview listing page ends