﻿var offsetX=0;var offsetY=-25;var opacity=100;var toolTipSTYLE;var confirmed;function initToolTips()
{if(document.getElementById){toolTipSTYLE=document.getElementById("toolTipLayer").style;}
if(is_ie||is_nav6up)
{toolTipSTYLE.visibility="visible";toolTipSTYLE.display="none";document.onmousemove=moveToMousePos;}}
function moveToMousePos(e)
{if(!is_ie){x=e.pageX;y=e.pageY;}else{x=event.x+document.body.scrollLeft;y=event.y+document.body.scrollTop;}
toolTipSTYLE.left=x+offsetX+'px';toolTipSTYLE.top=y+offsetY+'px';return true;}
function toolTip(msg,fg,bg)
{if(toolTip.arguments.length<1)
{if(is_nav4)
toolTipSTYLE.visibility="hidden";else
toolTipSTYLE.display="none";}
else
{if(!fg)fg="#000000";if(!bg)bg="#ffffff";var content=msg;if(is_nav4)
{toolTipSTYLE.document.write(content);toolTipSTYLE.document.close();toolTipSTYLE.visibility="visible";}
else if(is_ie||is_nav6up)
{document.getElementById("toolTipLayer").innerHTML=content;toolTipSTYLE.display='block'}}}
function show(){var s="<img id='f_img' src='images/tooltip_getitnow.png' width='53' height='41' border='0'/>";toolTip(s)}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function swapImage(strObject,strImage)
{var obj=document.getElementById(strObject);obj.src=strImage;}
function postFile(pURL,pHandlerFunc)
{pParameters="";if(pURL.split("?").length>1)
pParameters=pURL.split("?")[1];if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();xmlhttp.open("POST",pURL,false);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.send(pParameters);return pHandlerFunc(xmlhttp);}
else if(window.ActiveXObject)
{xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');if(xmlhttp)
{xmlhttp.open('POST',pURL,false);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.send(pParameters);return pHandlerFunc(xmlhttp)}}}
function HandleResponse(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{result1=theXMLHttp.responseText;result=result1.split("~~|~~")[0];if(result=="PACKOK")
{divPrice.innerHTML="$"+result1.split("~~|~~")[1];divCart.innerHTML=result1.split("~~|~~")[2];}
if(result=="PACKFAIL")
{if(lnkSender.className=="addcartB")
{lnkSender.className="removecartB";lnkSender.innerText="Remove";}
else
{lnkSender.className="addcartB";lnkSender.innerText="Add To Cart";}
ShowProcessing(false);alert(result=result1.split("~~|~~")[1]);}
if(result=="PAYPALOK")
{newSubID=result1.split("~~|~~")[1];theAmount=result1.split("~~|~~")[2];thePeriodType=result1.split("~~|~~")[3];thePeriodCount=result1.split("~~|~~")[4];theNumberOfPayments=result1.split("~~|~~")[5];theSubName=result1.split("~~|~~")[6];document.getElementById("paypal_price").value=theAmount;document.getElementById("paypal_price1").value=theAmount;document.getElementById("paypal_item_custom").value=newSubID;document.getElementById("paypal_item_name").value=theSubName;if(thePeriodType=="Day")
document.getElementById("paypal_t3").value="D";if(thePeriodType=="Month")
document.getElementById("paypal_t3").value="M";if(theNumberOfPayments==1)
document.getElementById("paypal_cmd").value="_xclick";document.getElementById("paypal_p3").value=thePeriodCount;document.getElementById("paypal_srt").value=theNumberOfPayments;submitASPForm("https://www.paypal.com/cgi-bin/webscr");return true;}}}}
function BannerClick(bannerID,link)
{var Url="BannerClicker.aspx?ID=";Url+=bannerID;postFile(Url,HandleBannerClick);window.open(link);}
function HandleBannerClick(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{}}}
function StreamSwitch(quality,channel_id,player,radioHighID,radioLowID,imgHighID,imgLowID) {
    if (quality == "High")
    { var Url = "StreamSwitcher.aspx?" + hqLink; postFile(Url, HandleStreamSwitch); }
    else
    { var Url = "StreamSwitcher.aspx?" + lqLink; postFile(Url, HandleStreamSwitch); }
SwitchPlayerBars(0);var radioHigh=document.getElementById(radioHighID);var radioLow=document.getElementById(radioLowID);var imgHighID=document.getElementById(imgHighID);var imgLowID=document.getElementById(imgLowID);if(radioHigh!=null)
imgHighID.onclick = function(){StreamSwitch('High', channel_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
radioHigh.onclick = function(){StreamSwitch('High', channel_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
imgLowID.onclick = function(){StreamSwitch('Low', channel_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
radioLow.onclick = function(){StreamSwitch('Low', channel_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
{if(quality=="High")
{radioHigh.checked=true;radioLow.checked=false;imgHighID.src='images/hq_btn_selected.jpg';imgLowID.src='images/lq_btn.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn_selected.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn.jpg');};}
else
{radioHigh.checked=false;radioLow.checked=true;imgHighID.src='images/hq_btn.jpg';imgLowID.src='images/lq_btn_selected.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn_selected.jpg');};}}}
function StreamSwitchVOD(quality,vod_id,player,radioHighID,radioLowID,imgHighID,imgLowID) {
    if (quality == "High")
    { var Url = "StreamSwitcher.aspx?" + hqLink; postFile(Url, HandleStreamSwitch); }
    else
    { var Url = "StreamSwitcher.aspx?" + lqLink; postFile(Url, HandleStreamSwitch); }
SwitchPlayerBars(0);var radioHigh=document.getElementById(radioHighID);var radioLow=document.getElementById(radioLowID);var imgHighID=document.getElementById(imgHighID);var imgLowID=document.getElementById(imgLowID);if(radioHigh!=null)
imgHighID.onclick = function(){StreamSwitchVOD('High', vod_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
radioHigh.onclick = function(){StreamSwitchVOD('High', vod_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
imgLowID.onclick = function(){StreamSwitchVOD('Low', vod_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
radioLow.onclick = function(){StreamSwitchVOD('Low', vod_id, player, radioHighID, radioLowID, imgHighID.id, imgLowID.id);}
{if(quality=="High")
{radioHigh.checked=true; radioLow.checked=false;imgHighID.src='images/hq_btn_selected.jpg';imgLowID.src='images/lq_btn.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn_selected.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn.jpg');};}
else
{radioHigh.checked=false;radioLow.checked=true;imgHighID.src='images/hq_btn.jpg';imgLowID.src='images/lq_btn_selected.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn_selected.jpg');};}}}
function StreamSwitchFront(quality, channel_id, player, imgHighID, imgLowID) {
    if (quality == "High")
    {var Url = "StreamSwitcher.aspx?" + hqLink;  postFile(Url, HandleStreamSwitch); }
    else
    { var Url = "StreamSwitcher.aspx?" + lqLink; postFile(Url, HandleStreamSwitch); }
SwitchPlayerBars(0);var imgHighID=document.getElementById(imgHighID);var imgLowID=document.getElementById(imgLowID);if(imgHighID!=null)
{if(quality=="High")
{imgHighID.src='images/hq_btn_selected.jpg';imgLowID.src='images/lq_btn.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn_selected.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn.jpg');};}
else
{imgHighID.src='images/hq_btn.jpg';imgLowID.src='images/lq_btn_selected.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn_selected.jpg');};}}}
function StreamSwitchVODFront(quality,vod_id,player,imgHighID,imgLowID) {
    if (quality == "High")
    { var Url = "StreamSwitcher.aspx?" + hqLink; postFile(Url, HandleStreamSwitch); }
    else
    { var Url = "StreamSwitcher.aspx?" + lqLink; postFile(Url, HandleStreamSwitch); }
SwitchPlayerBars(0);var imgHighID=document.getElementById(imgHighID);var imgLowID=document.getElementById(imgLowID);if(imgHighID!=null)
{if(quality=="High")
{imgHighID.src='images/hq_btn_selected.jpg';imgLowID.src='images/lq_btn.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn_selected.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn.jpg');};}
else
{imgHighID.src='images/hq_btn.jpg';imgLowID.src='images/lq_btn_selected.jpg';imgHighID.onmouseover=function(){swapImage(imgHighID.id,'images/hq_btn_hoverd.jpg');};imgLowID.onmouseover=function(){swapImage(imgLowID.id,'images/lq_btn_hover.jpg');};imgHighID.onmouseout=function(){swapImage(imgHighID.id,'images/hq_btn.jpg');};imgLowID.onmouseout=function(){swapImage(imgLowID.id,'images/lq_btn_selected.jpg');};}}}
var player;function HandleStreamSwitch(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200) {
    result1 = theXMLHttp.responseText; result = result1.split("~~|Yeshurin|~~")[0];
    if (result == "")
        return;
    player = result1.split("~~|Yeshurin|~~")[1];
    if (player == "")
        return;
        $find(player).stop(); $find(player).set_mediaSource(result);
$find(player).play();}}}
function submitASPForm(sNewFormAction)
{document.forms[0].action=sNewFormAction;document.forms[0].__VIEWSTATE.name='NOVIEWSTATE';document.forms[0].submit();}
function Cont2Checkout()
{if(divCart==null)
{ShowProcessing(false);alert("Your shopping cart is empty");return;}
if(divCart.innerHTML=="")
{ShowProcessing(false);alert("Your shopping cart is empty");return;}
else
{window.location.href="https://www.watchindia.tv/payment_page_step2.aspx";}}
function CheckLogin()
{var uName=document.getElementById("txtEmail");var uPass=document.getElementById("txtPass");return postFile("Login.aspx?uname="+uName.value+"&upass="+uPass.value,HandleLogin);}
function HandleTVGuideScroll(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{result1=theXMLHttp.responseText;result=result1.split("~~|Yeshurin|~~")[0];var divGuide=document.getElementById("tvguide");if(divGuide!=null)
{divGuide.outerHTML=result;}}}}
function HandleRemoteControlScroll(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{result1=theXMLHttp.responseText;result=result1.split("~~|Yeshurin|~~")[0];var divGuide=document.getElementById("divRemote");if(divGuide!=null)
{divGuide.innerHTML=result;}}}}
function HandleLogin(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{result1=theXMLHttp.responseText;result=result1.split("~~|~~")[0];if(result=="LOGINOK")
    //{window.location.href="http://www.watchindia.tv/player.aspx";}
    { window.location.href = "player.aspx"; }
if(result=="LOGINFAIL")
{ShowProcessing(false);alert(result1.split("~~|~~")[1]);}}}}
function HandleTVGuideResponse(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{result1=theXMLHttp.responseText;result=result1.split("~~|~~")[0];if(result=="OK")
{programName.innerHTML=result1.split("~~|~~")[1];programDescription.innerHTML=result1.split("~~|~~")[2];programLink.onclick="window.location.href = '"+result1.split("~~|~~")[3]+"'; return false;";programImage.src=result1.split("~~|~~")[4];programDate.innerHTML=result1.split("~~|~~")[5];ShowProgram();}
else if(result=="FAIL")
{ShowProcessing(false);alert(result1.split("~~|~~")[1]);}}}}
function ShowDropDown(nIndex)
{switch(nIndex)
{case 1:document.getElementById("SubscribeDiv").style.display="block";break;default:break;}}
function HideDropDown(nIndex)
{switch(nIndex)
{case 1:document.getElementById("SubscribeDiv").style.display="none";break;default:break;}}
function HandleLogout()
{window.location.href="homepage.aspx?logout=1"}
function CheckDate()
{var time=new Date();var gmtMS=time.getTime();var gmtTime=new Date(gmtMS);var hour=gmtTime.getHours();var minute=gmtTime.getMinutes();var time1=document.getElementById("time10");var time2=document.getElementById("time20");var time3=document.getElementById("time30");var time4=document.getElementById("time40");var time5=document.getElementById("time50");var time6=document.getElementById("time60");var time7=document.getElementById("time70");if(time1!=null)
{var tempTime=new Date(GetRoundDate(gmtTime));time1.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time2.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time3.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time4.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time5.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time6.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);tempTime=AddHalfHour(tempTime);time7.firstChild.childNodes.item(0).nodeValue=BuildStringHalfHour(tempTime);}}
function BuildStringHalfHour(date2check)
{var dt2check=new Date(date2check);var result="";if(dt2check.getMinutes()==30)
{result=dt2check.getHours()+":"+dt2check.getMinutes();}
else
{result=dt2check.getHours()+":"+dt2check.getMinutes()+"0";}
return result;}
function AddHalfHour(date2check)
{var dt2check=new Date(date2check);if(dt2check.getMinutes()==30)
{date2check=dt2check.setHours(dt2check.getHours()+1,00,0);}
else
{date2check=dt2check.setHours(dt2check.getHours(),30,0);}
return date2check;}
function GetRoundDate(date2check)
{var dt2check=new Date(date2check);if(dt2check.getMinutes()<15)
{date2check.setHours(dt2check.getHours(),00,0,0);return date2check;}
if(dt2check.getMinutes()>=15&&dt2check.getMinutes()<30)
{date2check.setHours(dt2check.getHours(),30,0,0);return date2check;}
if(dt2check.getMinutes()>=30&&dt2check.getMinutes()<45)
{date2check.setHours(dt2check.getHours(),30,0,0);return date2check;}
if(dt2check.getMinutes()>=45&&dt2check.getMinutes()<=59)
{date2check.setHours(dt2check.getHours()+1,0,0,0);return date2check;}
return date2check;}
function GMTClock(theClockID,gmtDiff)
{var time=new Date();var gmtMS=time.getTime()+((time.getTimezoneOffset()+gmtDiff)*60000);if(gmtDiff==-1)
gmtMS=time.getTime();var gmtTime=new Date(gmtMS);var hour=gmtTime.getHours();var minute=gmtTime.getMinutes();var second=gmtTime.getSeconds();var temp=""+((hour<10)?"0":"")+hour;temp+=((minute<10)?":0":":")+minute;temp+=((second<10)?":0":":")+second;document.getElementById(theClockID).innerHTML=temp;theFunc="GMTClock('"+theClockID+"',"+gmtDiff+");";setTimeout(theFunc,1000);}
function StartPlayer(uri)
{return postFile("player.aspx?StreamName="+uri,HandleStream);}
function HandleStream()
{}
var isWatching=false;function IsWatching(clicked)
{if(clicked=="true")
{$find(player).set_mediaSource(source);$find(player).play();isWatching=true;closePopUp('dialog');startTimer(timeToDisconnect);}
else
{isWatching=false;closePopUp('dialog');timerLogout();}}
var source="";function timerRequest()
{showPopUp('dialog');source=$find(player).get_mediaSource();$find(player).stop();var t=300*1000;setTimeout("timerLogout();",t);}
function timerLogout()
{if(!isWatching)
document.location.href='homepage.aspx?logout=1';}
function startTimer(disconectTimerTime)
{var t=disconectTimerTime*1000;setTimeout("timerRequest();",t);}
function GetTimerTime(isFreeTrial)
{if(isFreeTrial)
{timeToDisconnect=1200;}
else
{timeToDisconnect=10800;}
startTimer(timeToDisconnect);}
function GetVal()
{var check=document.getElementById("divPlayer_0");check=check.firstChild;}
function SwitchPlayerBars(bar2switch)
{var browserName=navigator.appName;var player=document.getElementById("divPlayer_0");var settings=document.getElementById("divToHide"); if(settings == null){return;} if(browserName=="Microsoft Internet Explorer")
{if(bar2switch==1)
{settings.style.display="block";player.style.display="none";}
else
{settings.style.display="none";player.style.display="block";}}
else
{if(bar2switch==1)
{player.style.height="0";player.style.width="0";player.style.visibility="hidden";settings.style.display="block";}
else
{player.style.display="block";player.style.visibility="";settings.style.display="none";}}}
var statechanged=false;function CheckStreamState(chanid,playerid)
{if(statechanged)
return;var cVal=getCookie("StreamState");statechanged=true;var sPath=window.location.pathname;var sPage=sPath.substring(sPath.lastIndexOf('/')+1);var div=document.getElementById("qDiv");var imageArr=div.getElementsByTagName("img");var imgH=null;var imgL=null;for(var i=0;i<imageArr.length;i++)
{if(imageArr[i].id.indexOf("imgHQ")!=-1)
imgH=imageArr[i];if(imageArr[i].id.indexOf("imgLQ")!=-1)
imgL=imageArr[i];}
if(sPage=="vod.aspx")
{if(cVal=="High")
{StreamSwitchVODFront('High',chanid,playerid,imgH.id,imgL.id);}
else
{StreamSwitchVODFront('Low',chanid,playerid,imgH.id,imgL.id);}}
else
{if(cVal=="High")
{StreamSwitchFront('High',chanid,playerid,imgH.id,imgL.id);}
else
{StreamSwitchFront('Low',chanid,playerid,imgH.id,imgL.id);}}}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function HandleSource(theXMLHttp)
{if(theXMLHttp.readyState==4)
{if(theXMLHttp.status==200)
{var result1=theXMLHttp.responseText;var result=result1.split("~~|~~")[0];}}}
function BrokenLinkReport(contentID, contentState)
{
    var Url="Remotefiter.aspx?BrokenLink=1";
    Url+="&BrokenMedia=";
    Url+=contentState;
    Url+="&ContentID=";
    Url+=contentID;
    postFile(Url,HandleSource);
}
function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
} 

function SwapVisibility(obj1ID, obj2ID)
{
    var obj1 = document.getElementById(obj1ID);
    var obj2 = document.getElementById(obj2ID);
    if(obj1 != null)
    {
        if(obj1.style.display == "block" || obj1.style.display == "")
        {
            obj1.style.display = "none";
            obj2.style.display = "block";
        } 
        else
        {
            obj1.style.display = "block";
            obj2.style.display = "none";
        }
    }
}

function ActivateTimers(subscriberID) {
    CheckFPS(); CheckCSS(subscriberID);
    setTimeout("ActivateTimers(" + subscriberID + ");", 60000);}

function CheckFPS() {
        $.ajax(
        { type: 'POST',
            contentType: 'application/json; charset=utf-8',
            url: 'WIServices.asmx/CheckFingerPrintState',
            data: '{}',
            dataType: 'json',
            async: true,
            success: function(data) {
                var resultValue = data.d;
                if(resultValue == "true" ||
                resultValue == "True")
                {RaiseFP_No_Timer();}
                else
                {HideFP_No_Timer();}
            }
        });}
function CheckCSS(subscriberID) {
    $.ajax(
        { type: 'POST',
            contentType: 'application/json; charset=utf-8',
            url: 'WIServices.asmx/CheckSubscriberStatus',
            data: '{nSubscriberID: "' + subscriberID + '"}',
            dataType: 'json',
            async: true,
            success: function(data) {
                var resultValue = data.d;
                if (resultValue == "true" ||
                resultValue == "True") { }
                else
                { document.location.href = "http://www.watchindia.tv/homepage.aspx?logout=1"; }
            }
        });}
