function show_new( id ) { document.getElementById(id).style.display = 'block'; document.getElementById("postid").style.display = 'none'; putMathQ(1); } function findPosY(obj){ var curtop = 0; if (obj.offsetParent){ while (obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } }else if (obj.y) curtop += obj.y; return curtop; } function findPosX(obj){ var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft obj = obj.offsetParent; } }else if (obj.x) curleft += obj.x; return curleft; } //document.getElementById("postcmtform").style.top=findPosX(document.getElementById("com2"))+"px"; function getQueryString (key){ var qString = window.location.search; if (qString.indexOf('?'+ key) > -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); } //document.domain='jeetwin-gaming.com'; function make_blank(){ var str; str="You will receive an email alert as soon as your comment is live"; if(document.mailform.fromaddress.value == str) document.mailform.fromaddress.value =""; } function putQueryStringInElement(){ var romsid = getQueryString("msid"); //var roopinion = getQueryString("opinion"); //var rotype = getQueryString("type"); //var articletitle = getQueryString("articletitle"); //document.getElementById("articletitle").value=articletitle; //document.getElementById("subject").value=articletitle + "- Times of India"; document.getElementById("SuccessURL").value="http://jeetwin-gaming.com/userscomment/thanks-1.cms?msid="+romsid; document.getElementById("FailureURL").value="http://jeetwin-gaming.com/userscomment/failure-1.cms?msid="+romsid; document.getElementById("id").value=romsid; document.getElementById("id1").value=romsid; } 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 checkMail(inmail){ var x = inmail; var y = 0; var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (x.indexOf(',') != -1){ var seperatevalues = x.split(','); var xx=0; for ( xx=0; xxYou can't post this comment as it contains inappropriate content."; document.getElementById("postCmtIn1").style.display="none"; document.getElementById("postid").style.display = 'block'; document.commentOnArticle.reset(); }else{ document.getElementById("postCmtIn").innerHTML="
You can't post this comment as it contains inappropriate content.
"; document.getElementById("postCmtIn").style.height="190px"; } } else if(xmlHttpObj.responseText=="duplicatecontent"){ if(frmObj.name=="commentOnArticle"){ document.getElementById("dupli_abus").style.display="block"; document.getElementById("dupli_abus").innerHTML="
You can't post this comment as it is identical to the previous one.
"; document.getElementById("postCmtIn1").style.display="none"; document.getElementById("postid").style.display = 'block'; document.commentOnArticle.reset(); }else{ document.getElementById("postCmtIn").innerHTML="
You can't post this comment as it is identical to the previous one.
"; document.getElementById("postCmtIn").style.height="190px"; } } else{ var currObj=$(obj).parents('.cmtBox'); var lvl = currObj.attr("leveldepth"); if(isLoggedSso==null) { if(frmObj.name=="commentOnArticle"){ document.getElementById("postCmtIn1").innerHTML="

Thank you
We appreciate you taking time to post your opinion on this article. You are just one step from
signing up with The Times of India. Know more about the benefits of signing up.

You might also like to read what others have to say on this article.

"; document.getElementById("postCmtIn1").style.height="360px"; }else{ document.getElementById("postCmtIn").innerHTML="

Thank you
We appreciate you taking time to post your opinion on this article. You are just one step from
signing up with The Times of India.Know more about the benefits of signing up.

You might also like to read what others have to say on this article.

"; document.getElementById("postCmtIn").style.height="190px"; } } else { var img_var = document.getElementById('profileimg2'); var imgSource = img_var.src; var alreadyfollow = currObj.find("[alreadyfollow]"); //var lvl_new = alreadyfollow.attr("alreadyfollow"); if(frmObj.name=="commentOnArticle") { dv = document.createElement('div'); // create dynamically div tag dv.setAttribute('style',"background:#EDF2F5;margin:5px 0 10px; padding:5px"); dv.innerHTML="
"+F_LN+" ("+postCmnt_loc+")
"+postCmnt_msg+"
"; document.getElementById("newpostCmtIn").appendChild(dv); document.getElementById("newpostCmtIn").style.borderBottom="1px dotted gray"; document.getElementById("postCmtIn1").style.display="none"; document.getElementById("dupli_abus").style.display="none"; document.getElementById("postid").style.display = 'block'; document.commentOnArticle.reset(); }else { dv = document.createElement('div'); // create dynamically div tag if(lvl==1){ dv.setAttribute('style',"padding-left:33px;background:#EDF2F5;width:597px;border-top: 1px dotted gray;margin-bottom: 5px;padding-bottom: 5px;"); } else if(lvl==2){ dv.setAttribute('style',"padding-left:54px;background:#EDF2F5;width:576px;border-top: 1px dotted gray;margin-bottom: 5px;padding-bottom: 5px;"); } else if(lvl==3){ dv.setAttribute('style',"padding-left:64px;background:#EDF2F5;width:566px;border-top: 1px dotted gray;margin-bottom: 5px;padding-bottom: 5px;"); } else if(lvl >= 4){ dv.setAttribute('style',"padding-left:72px;background:#EDF2F5;width:556px;border-top: 1px dotted gray;margin-bottom: 5px;padding-bottom: 5px;"); } else{ dv.setAttribute('style',"background:#EDF2F5;width:630px;border-top: 1px dotted gray;margin-bottom: 5px;padding-bottom: 5px;"); } dv.innerHTML="
"+F_LN+" ("+postCmnt_loc+")
"+postCmnt_msg+"
"; currObj.append(dv); closeMe(); } //Badgeville.credit('Post Comments'); } } } } if(decd=="1"){ if(userNameSFT=="" || userLocnSFT=="") { if(tmpUserLastName!=""){ urlStg="http://jeetwin-gaming.com/fbssoupdate.cms?emailid="+tmpUserEmail+"&firstname="+tmpUserName+"&lastname="+tmpUserLastName+"&city="+tmpUserLocn; } else { urlStg="http://jeetwin-gaming.com/fbssoupdate.cms?emailid="+tmpUserEmail+"&firstname="+tmpUserName+"&city="+tmpUserLocn; } document.getElementById('fbssoupd').src=urlStg; } } postCommAct(); var cmtarea=frmObj.message.value; Delete_Ckie("fbcheck","/",".jeetwin-gaming.com"); Delete_Ckie("twtcheck","/",".jeetwin-gaming.com"); Delete_Ckie("usercomt","/",".jeetwin-gaming.com"); if(Get_Ckie('fbook_id')==null) { Set_Ckie("notfbloggedin","1",1,"/",".jeetwin-gaming.com",""); } if(Get_Ckie('tweet_id')==null) { Set_Ckie("nottwtloggedin","1",1,"/",".jeetwin-gaming.com",""); } if(glbltmpform=="commentOnArticle") { if(glbltmpformobj==true) { Set_Ckie("fbcheck","1",1,"/",".jeetwin-gaming.com",""); Set_Ckie("usercomt",cmtarea,1,"/",".jeetwin-gaming.com",""); if(Get_Ckie('MSCSAuth')!=null) { setTimeout(function(){callPost()},2000); //callPost(); //log('sh_fb',navmsid); } else { callPublish(cmtarea,null); } } if(glbltmpformobj1==true) { Set_Ckie("twtcheck","1",1,"/",".jeetwin-gaming.com",""); Set_Ckie("usercomt",cmtarea,1,"/",".jeetwin-gaming.com",""); if(Get_Ckie('MSCSAuth')!=null) { setTimeout(function(){callPost()},2000); //callPost(); //log('sh_tw',navmsid); } else { var cmtarea1=""; if(cmtarea.length>100)cmtarea1=cmtarea.substring(0,99); else cmtarea1=cmtarea; getshortenURL(document.location.href,cmtarea1); //var twtCUrl="http://twitter.com/share?text="+cmtarea+"&url="+document.location.href; //sigintwtCfb = window.open (twtCUrl,"sigintwtCfb","location=1,status=1,scrollbars=1,width=750,height=500"); //sigintwtCfb.moveTo(275,275); } } } else { if(glbltmpformobj2==true) { Set_Ckie("fbcheck","1",1,"/",".jeetwin-gaming.com",""); Set_Ckie("usercomt",cmtarea,1,"/",".jeetwin-gaming.com",""); if(Get_Ckie('MSCSAuth')!=null) { setTimeout(function(){callPost()},2000); //callPost(); //log('sh_fb',navmsid); } else { callPublish(cmtarea,null); } } if(glbltmpformobj3==true) { Set_Ckie("twtcheck","1",1,"/",".jeetwin-gaming.com",""); Set_Ckie("usercomt",cmtarea,1,"/",".jeetwin-gaming.com",""); if(Get_Ckie('MSCSAuth')!=null) { setTimeout(function(){callPost()},2000); //callPost(); //log('sh_tw',navmsid); } else { var cmtarea1=""; if(cmtarea.length>100)cmtarea1=cmtarea.substring(0,99); else cmtarea1=cmtarea; getshortenURL(document.location.href,cmtarea1); //var twtCUrl="http://twitter.com/share?text="+cmtarea+"&url="+document.location.href; //sigintwtCfb = window.open (twtCUrl,"sigintwtCfb","location=1,status=1,scrollbars=1,width=750,height=500"); //sigintwtCfb.moveTo(275,275); } } } } catch(ex) { } } var respText; function callPost(){ try { if(respText!="abusivelanguage" && respText!="duplicatecontent"){ var fbUrl=""; var twtUrl=""; fbUrl="/stgredirectpagetest.cms"; myfb = window.open (fbUrl,"myfb","location=1,status=1,scrollbars=0,width=600,height=230"); myfb.moveTo(250,240); } } catch(ex) { } } var cmtFormOpen='0'; function showCmtBox(cmtid,pcmtid,yt){ try{ if(cmtFormOpen!='0'){ if(yt=='1') { if( document.getElementById("postcmtformnw"+cmtFormOpen)!=null)document.getElementById("postcmtformnw"+cmtFormOpen).innerHTML=""; if( document.getElementById("postcmtform"+cmtFormOpen)!=null)document.getElementById("postcmtform"+cmtFormOpen).innerHTML=""; } else{ if( document.getElementById("postcmtform"+cmtFormOpen)!=null) document.getElementById("postcmtform"+cmtFormOpen).innerHTML=""; if( document.getElementById("postcmtformnw"+cmtFormOpen)!=null)document.getElementById("postcmtformnw"+cmtFormOpen).innerHTML=""; } } if(pcmtid==''){ pcmtid='0'; } cmtFormOpen=cmtid; if(yt=='1'){ document.getElementById("postcmtformnw" + cmtid).style.cssText="width:590px;position:absolute;z-index:10000 !important;"; document.getElementById("postcmtformnw" + cmtid).innerHTML=document.getElementById("postcmtform").innerHTML; } else{ document.getElementById("postcmtform"+cmtid).style.cssText="width:590px;position:absolute;z-index:10000 !important;"; document.getElementById("postcmtform"+cmtid).innerHTML=document.getElementById("postcmtform").innerHTML; } //document.getElementById("ff").focus(); document.getElementById("message").focus(); document.getElementById("parentid").value=cmtid; document.getElementById("rootid").value=pcmtid; if(fbauthid!='F') { //Fb Mapping exists document.getElementById("chkfb1").checked="true"; } putMathQ('2'); replyCmt(); } catch(ex){} } function replyCmt() { try { var ssoUname1=""; var isLoggedtmpSSO1=""; if(whoIam>0) { var validBr=0; var validWidth=0; //document.getElementById("loginlay20").style.display="none"; //document.getElementById("loginlay21").style.display="none"; //document.getElementById("mathq2").style.display="none"; //document.getElementById("mathuserans2").style.display="none"; isLoggedtmpSSO1 = Get_Ckie('MSCSAuthDetails'); ssoUname1=userNameSFT; if(ssoUname1.indexOf('@')!=-1){ ssoUname1=ssoUname1.split('@'); ssoUname1=ssoUname1[0]; } else { ssoUname1=""; } if(userNameSFT=="" || userNameSFT==null){ document.getElementById('fromname1').style.display="inline"; document.getElementById('nameTxt1').style.display="inline-block"; if(username.indexOf('@')!=-1) { username = username.split('@')[0]; } document.getElementById('fromname1').value=username; validWidth=1; } else { if(ssoUname1!="") { document.getElementById('fromname1').style.display="inline"; document.getElementById('fromname1').value=ssoUname1; document.getElementById('nameTxt1').style.display="inline-block"; if(username.indexOf('@')!=-1) { username = username.split('@')[0]; } document.getElementById('fromname1').value=username; validWidth=1; } else { document.getElementById('fromname1').style.display="none"; document.getElementById('nameTxt1').style.display="none"; validWidth=validWidth+1; validBr=1; } } if(userEmailSFT=="" || userEmailSFT==null) { document.getElementById('fromaddress1').style.display="inline"; document.getElementById('emailTxt1').style.display="inline-block"; validWidth=validWidth+1; } else { document.getElementById('fromaddress1').style.display="none"; document.getElementById('emailTxt1').style.display="none"; validWidth=validWidth+2; validBr=validBr+1; if(validBr>1) { document.getElementById('tpremovebr1').style.display="none"; document.getElementById('tpremovebr2').style.display="none"; //document.getElementById('removebr2').style.display="none"; } else { document.getElementById('tpremovebr1').style.display="inline"; document.getElementById('tpremovebr2').style.display="inline"; //document.getElementById('removebr2').style.display="inline"; } } if(validWidth=="3") { //document.forms['commentOnComment'].elements['message'].style.width="520px"; } else { //document.forms['commentOnComment'].elements['message'].style.width="338px"; } var tmpLoc=""; var tmpSSoUer1=Get_Ckie('MSCSAuthDetails').split('=')[1]; if(tmpSSoUer1.indexOf('@')==-1){ tmpSSoUer1=tmpSSoUer1+"@jeetwin-gaming.com"; } var tmpLocVal=""; if(Get_Ckie(tmpSSoUer1+'~tflocation')!=null && Get_Ckie(tmpSSoUer1+'~tflocation')!="" && Get_Ckie(tmpSSoUer1+'~tflocation')!=" ") { tmpLoc = Get_Ckie(tmpSSoUer1+'~tflocation').split('~')[0]; tmpLocVal = Get_Ckie(tmpSSoUer1+'~tflocation').split('~')[1]; if(tmpSSoUer1==tmpLoc){ userLocnSFT=tmpLocVal; } else { Delete_Ckie(userEmailSFT+"~tflocation","/",".jeetwin-gaming.com"); } } else if(validWidth=="2"){ //document.getElementById('fromaddress1').style.width="384px"; //document.getElementById('fromaddress1').style.marginLeft="1px"; } else { //document.forms['commentOnComment'].elements['fromname'].style.width="190px"; //document.forms['commentOnComment'].elements['fromaddress'].style.width="190px"; } if(userLocnSFT=="" || userLocnSFT==null) { document.getElementById('location1').style.display="inline"; document.getElementById('locationTxt1').style.display="inline-block"; } else { document.getElementById('location1').style.display="none"; document.getElementById('locationTxt1').style.display="none"; //document.forms['commentOnComment'].elements['fromaddress'].style.marginLeft="24px"; } } } catch(ex) { } } function fillformdetail(params,cmtid) { try { var isLoggedfill = Get_Ckie('MSCSAuth'); var usernamefill=Get_Ckie('MSCSAuthDetails').split('=')[1]; var usernamefill1=Get_Ckie('MSCSAuthDetail').split('~'); var usernamefill2=usernamefill1[4]; var usernamefill3=usernamefill2.split('=')[1]; if(isLoggedfill != "" || isLoggedfill != null) { document.getElementById("chkfb").checked="true"; if(usernamefill.indexOf('@') == -1) {tmpstrfill=usernamefill+'@jeetwin-gaming.com';} else{tmpstrfill=usernamefill;} if(params==1) { document.commentOnArticle.fromaddress.value=tmpstrfill; if(usernamefill3=="null"){ if(tmpstrfill.indexOf('@') == -1)document.commentOnArticle.fromname.value=tmpstrfill; else document.commentOnArticle.fromname.value=tmpstrfill.split('@')[0]; } else{document.commentOnArticle.fromname.value=usernamefill3;} //document.getElementById("mathuserans1").value=document.getElementById("mathans1").innerHTML; //document.getElementById("loginlay1").style.display="none"; //document.getElementById("loginlay").style.display="none"; //document.getElementById("mathuserans1").style.display="none"; } if(params==2) { document.getElementById("fromaddress").value=tmpstrfill; if(usernamefill3=="null"){ if(tmpstrfill.indexOf('@') == -1)document.getElementById("fromname").value=tmpstrfill; else document.getElementById("fromname").value=tmpstrfill.split('@')[0]; } else{document.getElementById("fromname").value=usernamefill3;} document.getElementById("mathuserans2").value=document.getElementById("mathans2").innerHTML; document.getElementById("loginlay21").style.display="none"; document.getElementById("loginlay20").style.display="none"; document.getElementById("loginlay22").style.display="none"; document.getElementById("mathuserans2").style.display="none"; } } }catch(ex){} } var tmpfbauthimg=""; function populatefbImgN(urlval,divval){ try{ var xmlhttp=false; var status=0; xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200) { var recordSet=""; document.getElementById(divval).innerHTML=xmlhttp.responseText; tmpfbauthimg=document.getElementById('showimage').value; } else if (xmlhttp.status==404) status=0 else status=0}} xmlhttp.open("GET",urlval,true); xmlhttp.send(null); }}catch (e){xmlhttp = false; }} var palace=""; var objid=""; function SubmitComment(obj,objid,palace){ try { var formObj = document.getElementById(objid); postRo(obj,formObj,palace); } catch(ex){ } } function putMathQ(palace){ var f = Math.floor(Math.random()*10); var s = Math.floor(Math.random()*6); var o = Math.floor(Math.random()*2); //if(f<10){f=f+10} var str=""; str=f+" + "+s; document.getElementById("mathans"+palace).innerHTML=eval(str); str = str + " = "; document.getElementById("mathq"+palace).innerHTML=str; } function remainingChar(cobj,divid){ var x = cobj.value.length; if(eval("3000-"+x)<0){ cobj.value = cobj.value.substring(0,3000); alert("You have entered more than 3000 characters"); document.getElementById(divid).innerHTML=eval("0"); return false; } document.getElementById(divid).innerHTML=eval("3000-"+x); } function makeBlank(obj,defMsg){ if(obj.value==defMsg){ obj.value=""; } } function fillDefValue(obj,defMsg){ if(obj.value==""){ obj.value=defMsg; } } function closeMe(){ if(document.getElementById("postcmtform"+cmtFormOpen)!=null) document.getElementById("postcmtform"+cmtFormOpen).innerHTML=""; if(document.getElementById("postcmtformnw"+cmtFormOpen)!=null) document.getElementById("postcmtformnw"+cmtFormOpen).innerHTML=""; } function trim(str) { if(!str || typeof str != 'string') return null; return str.replace(/^[\s]+/,'').replace(/[\s]+$/,'').replace(/[\s]{2,}/,' '); }