﻿// JScript File


function vote() {
    
    var inputElements = document.getElementsByTagName("INPUT");
    var userSelection;
  
    for(i=0; i<inputElements.length;i++) 
    {
        if(inputElements[i].type == 'radio') 
        {
            if(inputElements[i].checked) 
            {
                userSelection = inputElements[i].value; 
                break; 
            }
        }
    }
  
    CallServer("Vote" + userSelection,'');

    return false;
}
 

 
 
function SetPollOptions()
{
    CallServer('Vote', "");
}

function ActiveTabChanged(tabvalue)
{   
    //var tabvalue = sender.get_activeTab().get_id().replace(/Tabs_/g,"");

    CallServer(tabvalue, "");
}

function ReceiveServerData(rValue)
{   
    
    if(rValue.indexOf('Vote') != -1)
    {
        document.getElementById("DivPoll").innerHTML = rValue.replace(/Vote/g,"");
    }
    else
    {
        document.getElementById("DivFeaturedNewsContents").innerHTML = rValue;
    }
}

function GetRashi()
{        
    var IDoption = document.getElementById("Rashifal1_DdlRashifal").value;
    var IDsunsign = document.getElementById("Rashifal1_DdlRashi").value;
    
    showPopWin("RashifalDetails.aspx?IDoption="+IDoption+"&IDsunsign="+IDsunsign, 530, 350, null,false);		    
   // window.open('RashifalDetails.aspx?IDoption='+IDoption+'&IDsunsign='+IDsunsign,'mywin',
   // 'left=300,top=200,width=400,height=400,toolbar=0,resizable=0,scrollbars=1');
    
    return false;
}