// JavaScript Document

		function getpoll(ch)
		{
		var mypoll;
		
			if(document.frm.Poll[0].checked==false && document.frm.Poll[1].checked==false)
			{
				//alert(document.frm.Poll[2].value)
				mypoll=document.frm.Poll[2].value
			}
			if(document.frm.Poll[1].checked==false && document.frm.Poll[2].checked==false)
			{
				//alert(document.frm.Poll[0].value)
				mypoll=document.frm.Poll[0].value
			}
			if(document.frm.Poll[0].checked==false && document.frm.Poll[2].checked==false)
			{
				//alert(document.frm.Poll[1].value)
				mypoll=document.frm.Poll[1].value		
			}
						
			if(document.frm.Poll[0].checked==false && document.frm.Poll[1].checked==false && document.frm.Poll[2].checked==false)
			{
			  alert("Please select atleast One Option")
			  //return false;
			}
			else
			{
			  //alert(mypoll)
			  //alert(ch)
			  window.open('getpolval1.php?pollchname='+ch+'&val='+mypoll,'Srate','width=550,height=400')
			  
			}
				
		}

/*function getpoll(ch)
{
var mypoll;

	if(document.frm.Poll[0].checked==false && document.frm.Poll[1].checked==false)
	{
  		//alert(document.frm.Poll[2].value)
		mypoll=document.frm.Poll[2].value
	}
	if(document.frm.Poll[1].checked==false && document.frm.Poll[2].checked==false)
	{
  		//alert(document.frm.Poll[0].value)
		mypoll=document.frm.Poll[0].value
	}
	if(document.frm.Poll[0].checked==false && document.frm.Poll[2].checked==false)
	{
  		//alert(document.frm.Poll[1].value)
		mypoll=document.frm.Poll[1].value		
	}
				
	if(document.frm.Poll[0].checked==false && document.frm.Poll[1].checked==false && document.frm.Poll[2].checked==false)
	{
	  alert("Please select atleast One Option")
	  //return false;
	}
	else
	{
	  //alert(mypoll)
	  //alert(ch)
	  window.open('getpollval1.php?pollchname='+ch+'&val='+mypoll,'Srate','scrollbars=1,width=500,height=325')
	  
	}
		
}*/

function progdetails(cname,cat)
{
	 window.open('program_details.php?cname='+cname+'&cat='+cat,'Details','scrollbars=1,width=600,height=450')
}

function press(pressid)
{
	 window.open('press_details.php?pressid='+pressid,'Details','scrollbars=1,width=600,height=450')
}

function privacydetails()
{
	 window.open('privacy.htm','Details','scrollbars=1,width=590,height=550')
}

function hyperlink(x,y)
{
  document.frm.channelname.value=y
  if(x=="index.php")
  {
	  	
	  document.frm.action="index.php"
  	  document.frm.submit()
  }
  else if(x=="home.php")
  {
	  document.frm.action="home.php"
  	  document.frm.submit()
  }
  else if(x=="schedules.php")
  {
	  document.frm.action="schedules.php"
  	  document.frm.submit()
  }
  else if(x=="competition.php")
  {
	  document.frm.action="competition.php"
  	  document.frm.submit()
  }
  else if(x=="technicalinfo.php")
  {
	  document.frm.action="technicalinfo.php"
  	  document.frm.submit()
  } 
 /*else if(x=="gallery.php")
  {
	  document.frm.action="gallery.php"
  	  document.frm.submit()
  }*/
  else if(x=="news_movies.php")
  {
	  document.frm.action="news_movies.php"
  	  document.frm.submit()
  }
  else if(x=="dist_frm.php")
  {
	  document.frm.action="dist_frm.php"
  	  document.frm.submit()
  }
   else if(x=="subscriptionrates.php")
  {
	  document.frm.action="subscriptionrates.php"
  	  document.frm.submit()
  }
   else if(x=="ratings.php")
  {
	  document.frm.action="ratings.php"
  	  document.frm.submit()
  }
  else if(x=="careers.php")
  {
	  document.frm.action="careers.php"
  	  document.frm.submit()
  }
  else if(x=="feedback.php")
  {
	  document.frm.action="feedback.php"
  	  document.frm.submit()
  }
  else if(x=="sponsership.php")
  {
	  document.frm.action="sponsership.php"
  	  document.frm.submit()
  }
   else if(x=="contact.php")
  {
	  document.frm.action="contact.php"
  	  document.frm.submit()
  }
   else if(x=="USA")
  {
	  location.href="etvinusa/usaindex.php"
  }
}

function selectchannel(x)
{
	 //alert("select channel called")
	 //alert(x)
	 document.frm.channelname.value=x
	 //document.frm.action="index.php?channelname"+x
	 if(x=="Network")
	 {
	   document.frm.action="index.php" 
	 }
	 else
	 {
		document.frm.fromhome.value="index1";
	   document.frm.action="index1.php" 
	 }
	 document.frm.submit()
}

function homelink(x)
{
   ///   location.href="index.php?channelname="+x
	 
}

function csmoredetails(csid,y,z)
{
	window.open('csmore_details.php?csid='+csid+'&tname='+y+'&cat='+z,'Details','scrollbars=1,width=450,height=470') 
}

// google search /////
function submit_google()
{
	//window.open('processor.php?q='+q+'&st='+y,'Details','scrollbars=1,width=450,height=470')
	document.frm.action="processor.php"
	document.frm.submit()
}