Loading
';str_temp = str_temp + '';document.getElementById(divval).innerHTML = str_temp;}xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");if (xmlhttp){xmlhttp.onreadystatechange=function(){if (xmlhttp.readyState==4){if (xmlhttp.status==200){document.getElementById(divval).innerHTML=xmlhttp.responseText;}else if (xmlhttp.status==404) status=0else status=0}}xmlhttp.open("GET",urlval,true);xmlhttp.send(null);}}catch (e){xmlhttp = false; }}function blockError(){return true;} window.onerror = blockError; var timeslog_channel_url = 'economictimes.indiatimes.com';var ttrendlogmsid='13686261';function blockError(){return true;} window.onerror = blockError; var timeslog_channel_url = 'economictimes.indiatimes.com';var ttrendlogmsid='13686261';function invokeLogin(){try{isLoggedSso = getCookievaluetwitt('MSCSAuth');if(Get_Ckie('autologin')!=null){Delete_Ckie("autologin","/",".indiatimes.com");}tpbar1();setTimeout("twtFbSso();",1000);setTimeout("dolike();",2000);setTimeout("populate_wf_new('/cmtofartfb/13686261.cms?msid=13686261','populatecomment','no','putMathQ(1);fillformdetail(1);putCmtCnt();getemid();')",5000);}catch(ex){}} var usersessionkey=""; var loginFbSts=""; FB.init({appId: '117787264903013',oauth:true, status: true, cookie: true, xfbml: true}); if(Get_Ckie('autologin')!=null){Delete_Ckie("autologin","/",".indiatimes.com"); } function getFbActiveSession() { try{ if(usersessionkey!='' && Get_Ckie('autologin')==null && Get_Ckie('MSCSAuth')==null){Set_Ckie("autologin","1",0,"/",".indiatimes.com","");document.getElementById("signupsso").src="/autologin.cms";}else{if(loginFbSts=="not_authorized"){ //Received the FB Active Session but app not authenticated//if(Get_Ckie('disableautolg')==null)//{ // Set_Ckie("autologin","1",0,"/",".indiatimes.com","");//loadPopup('13');//}}if(loginFbSts=="unknown"){// FB not connected }}}catch(ex){} } function getSessionFB(){ FB.getLoginStatus(function(response) { loginFbSts=response.status; if (response.authResponse){//session = response.session;//sessionkey=session.session_key;usersessionkey=response.authResponse.accessToken;} else { } getFbActiveSession(); }); } try { setTimeout("getSessionFB()",2000); } catch(ex){ } var filesadded="" var filesdeleted=""; function removejscssfile(filename, filetype) { var targetelement=(filetype=="js")? "script" : (filetype=="css")? "link" : "none" //determine element type to create nodelist from var targetattr=(filetype=="js")? "src" : (filetype=="css")? "href" : "none" //determine corresponding attribute to test for var allsuspects=document.getElementsByTagName(targetelement) for (var i=allsuspects.length; i>=0; i--){ //search backwards within nodelist for matching elements to remove if (allsuspects[i] && allsuspects[i].getAttribute(targetattr)!=null && allsuspects[i].getAttribute(targetattr).indexOf(filename)!=-1)allsuspects[i].parentNode.removeChild(allsuspects[i]) //remove element by calling parentNode.removeChild() } } function loadjscssfile(filename, filetype) { if (filetype=="js"){ //if filename is a external JavaScript file var fileref=document.createElement('script') fileref.setAttribute("type","text/javascript") fileref.setAttribute("src", filename); } else if (filetype=="css"){ //if filename is an external CSS file var fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", filename) } if (typeof fileref!="undefined") document.getElementsByTagName("head")[0].appendChild(fileref) } function checkloadjscssfile(filename, filetype) { loadjscssfile(filename, filetype) filesadded+="["+filename+"]" //List of files added in the form "[filename1],[filename2],etc" } function checkdeletejscssfile(filename, filetype) { removejscssfile(filename, filetype) filesdeleted+="["+filename+"]" //List of files added in the form "[filename1],[filename2],etc" } if(navigator.appName=="Microsoft Internet Explorer"){checkdeletejscssfile("/social_cssie.cms", "css");checkloadjscssfile("/social_cssie.cms", "css");checkdeletejscssfile("/social_jsie_top_v3.cms?ogtype=1", "js");checkloadjscssfile("/social_jsie_top_v3.cms?ogtype=1", "js");}else{checkdeletejscssfile("/social_cssffcrome.cms", "css");checkloadjscssfile("/social_cssffcrome.cms", "css");checkdeletejscssfile("/social_jsffcrome_top_v3.cms?ogtype=1", "js");checkloadjscssfile("/social_jsffcrome_top_v3.cms?ogtype=1", "js");}if(navigator.appName=="Microsoft Internet Explorer"){checkdeletejscssfile("/social_jsie_bottom.cms", "js");checkloadjscssfile("/social_jsie_bottom.cms", "js");document.getElementById('readerie').style.display="block";}else{checkdeletejscssfile("/social_jsffcrome_bottom.cms", "js");checkloadjscssfile("/social_jsffcrome_bottom.cms", "js");document.getElementById('readerffchr').style.display="block";}setTimeout("dolike();",1000); function dolike(){try{var tmpuName=getCookievaluetwitt('MSCSAuthDetails').split('=')[1];if(tmpuName!=null || tmpuName!=""){if(tmpuName.indexOf('@')==-1){tmpuName=tmpuName+'@indiatimes.com';}var ssoImageSrc="";if(getCookievaluetwitt('Fbimage')!=null){var usersessionkey="";var smallImageFB="";var bigImageFB=getCookievaluetwitt('Fbimage');var fbmapremove=getCookievaluetwitt('fbmapremove');if(bigImageFB!=null){bigImageFB=bigImageFB+"?type=large";}else{bigImageFB="http://economictimes.indiatimes.com/photo/8221284.cms";}var smallImageFBLogo="";if(fbmapremove==null){ssoImageSrc="http://jsso.indiatimes.com/sso/GetImage?userid="+tmpuName+"&siteid=28bfa66996f8f615c2e2a688f807a675&ru=http://economictimes.indiatimes.com/photo/82212bbb84.cms";document.getElementById("usrprofileimg").src=ssoImageSrc;var image = document.getElementById('usrprofileimg');image.onerror = function () { this.src = bigImageFB; // place your error.png image instead};}else{document.getElementById("usrprofileimg").src="http://economictimes.indiatimes.com/photo/8221284.cms";}document.getElementById("usernamedo").style.display="block";if(userNameSFT!=""){var tmpUfNVal1="";var tmpUfN1="";var tmpUlN1="";var tmpUFullN1="";var username;tmpUfNVal1=getCookievaluetwitt('MSCSAuthDetail');tmpUfNVal1=tmpUfNVal1.split("~");if(tmpUfNVal1[4].split('=')[1]!=null){tmpUfN1=tmpUfNVal1[4].split('=')[1];if(tmpUfN1=="null"){tmpUfN1="";}}else {tmpUfN1="";}if(tmpUfNVal1[5].split('=')[1]!=null){tmpUlN1=tmpUfNVal1[5].split('=')[1];if(tmpUlN1=="null"){tmpUlN1="";}}else {tmpUlN1="";}var tmplower=tmpUfN1.toLowerCase();var tmplower1=tmpUlN1.toLowerCase();if (tmplower.indexOf(tmplower1) !=-1) {username=tmpUfN1;}else if (tmpUfN1.indexOf(tmpUlN1) !=-1) {username=tmpUfN1;}else {username=tmpUfN1+" "+tmpUlN1;}tmpUFullN1=tmpUfN1+tmpUlN1;username=username.replace("+"," ");document.getElementById("usernamediv").innerHTML=username;}else{if(tmpuName.indexOf('@')!=-1){tmpuName1=tmpuName.split('@');document.getElementById("usernamediv").innerHTML=tmpuName1[0];}else{document.getElementById("usernamediv").innerHTML=tmpuName;}}}else{ssoImageSrc="http://jsso.indiatimes.com/sso/GetImage?userid="+tmpuName+"&siteid=28bfa66996f8f615c2e2a688f807a675&ru=http://economictimes.indiatimes.com/photo/8221284.cms";document.getElementById("usrprofileimg").src=ssoImageSrc;document.getElementById("usernamedo").style.display="block";if(userNameSFT!=""){var tmpUfNVal1="";var tmpUfN1="";var tmpUlN1="";var tmpUFullN1="";var username;tmpUfNVal1=getCookievaluetwitt('MSCSAuthDetail');tmpUfNVal1=tmpUfNVal1.split("~");if(tmpUfNVal1[4].split('=')[1]!=null){tmpUfN1=tmpUfNVal1[4].split('=')[1];if(tmpUfN1=="null"){tmpUfN1="";}}else {tmpUfN1="";}if(tmpUfNVal1[5].split('=')[1]!=null){tmpUlN1=tmpUfNVal1[5].split('=')[1];if(tmpUlN1=="null"){tmpUlN1="";}}else {tmpUlN1="";}var tmplower=tmpUfN1.toLowerCase();var tmplower1=tmpUlN1.toLowerCase();if (tmplower.indexOf(tmplower1) !=-1) {username=tmpUfN1;}else if (tmpUfN1.indexOf(tmpUlN1) !=-1) {username=tmpUfN1;}else {username=tmpUfN1+" "+tmpUlN1;}tmpUFullN1=tmpUfN1+tmpUlN1;username=username.replace("+"," ");document.getElementById("usernamediv").innerHTML=username;}else{if(tmpuName.indexOf('@')!=-1){tmpuName1=tmpuName.split('@');document.getElementById("usernamediv").innerHTML=tmpuName1[0];}else{document.getElementById("usernamediv").innerHTML=tmpuName;}}//document.imagechangeform.userid.value=tmpuName;}document.getElementById("usernameimg").style.display="block";//ssoImageSrc="http://jsso.indiatimes.com/sso/GetImage?userid="+tmpuName+"&siteid=28bfa66996f8f615c2e2a688f807a675&ru=http://economictimes.indiatimes.com/photo/8221284.cms";}}catch(ex){}}if(Get_Ckie('FRMartshow')!=null){Delete_Ckie("FRMartshow","/",".indiatimes.com");}function mysvdart(){Set_Ckie("FRMartshow","1",1,"/",".indiatimes.com","");}function childcmt(rootid){try{var trigerList = $("div[id^='"+rootid+"']");var trigerList1 = $("div[id^='expend"+rootid+"']");for(i=0;i1){if(lvldpt == 2){$(trigerList[i]).css({"paddingLeft":"50px"});$(trigerList[i]).css({"width":"569px"});}if(lvldpt == 3){$(trigerList[i]).css({"paddingLeft":"100px"});$(trigerList[i]).css({"width":"519px"});}if(lvldpt == 3){$(trigerList[i]).css({"paddingLeft":"150px"});$(trigerList[i]).css({"width":"479px"});}}}for(ij=0;ij1){if(lvldpt == 2){$(trigerList[i]).css({"paddingLeft":"50px"});$(trigerList[i]).css({"width":"569px"});}if(lvldpt == 3){$(trigerList[i]).css({"paddingLeft":"100px"});$(trigerList[i]).css({"width":"519px"});}if(lvldpt == 3){$(trigerList[i]).css({"paddingLeft":"150px"});$(trigerList[i]).css({"width":"479px"});}}}for(ij=0;ij1){}else{//trigerList6.style.display="none";trigerList6.hide();}}function getnxtpagecnt(){var trigerList4 = $("span[id^='gtcnt']");for(i=0;i
No comments:
Post a Comment