// JavaScript Document

function popup(js_src, js_nam, js_wid, js_hgt) {

window.open(js_src, js_nam,
"toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=no,resizable=no,maximize=no,left=20,top=20,width=" + js_wid + ",height=" + js_hgt);
}

function popupall(js_src, js_nam, js_wid, js_hgt) {

window.open(js_src, js_nam,
"toolbar=yes,location=yes,status=yes,directories=yes,menubar=yes,scrollbars=yes,resizable=yes,maximize=yes,left=20,top=20,width=" + js_wid + ",height=" + js_hgt);
}

function popupscroll(js_src, js_nam, js_wid, js_hgt) {

window.open(js_src, js_nam,
"toolbar=no,location=no,status=no,directories=no,menubar=no,scrollbars=yes,resizable=no,maximize=no,left=20,top=20,width=" + js_wid + ",height=" + js_hgt);
}

function MM_jumpMenu(targ,selObj,restore,thisurl){ //v3.0
	
	switch(thisurl)
	{
		case "http://www.sky-skymedia.com":
			popupall(thisurl,'Sky',800,600);
			break;
		default:
			if (selObj.options[selObj.selectedIndex].value != "0") 
			{
	  			eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  			if (restore) selObj.selectedIndex=0;
  			}		
  			break;
	}
	
   
}

function bsgm1(){	window.location.href = "episodeguide.aspx?eid=8"	}
function bat1(){	window.location.href = "bat_quiz1.aspx"	}
function bat2(){	window.location.href = "/competitions/battlestar.aspx"	}
function bat3(){	window.location.href = "showoverview.aspx"	}
function bat4(){	window.location.href = "/scifi/interview.aspx?iID=13"	}
function bat5(){	window.location.href = "http://www.skyoneshop.co.uk/ProductsInCounter.cfm?subcat=4600&ShopRef=69&cat=538"}
function bats1(){	window.location.href = "/programmes/stargatesg1/"}
function bats2(){	window.location.href = "/programmes/enterprise/"}
function bats3(){	window.location.href = "/programmes/hex/"}
function bats4(){	window.location.href = "/programmes/angel/"}
function bats5(){	window.location.href = "/scifi/"}
function bats6(){	window.location.href = "/24/"}
function bats7(){	window.location.href = "/programmes/deadwood/"}

function atlhome(){window.location.href = "default.aspx";}
function atl1(){window.location.href = "interviews.aspx";}
function atl2(){window.location.href = "gallery.aspx";}
function atl3(){window.location.href = "showoverview.aspx";}
function atl4(){window.location.href = "/skyoneforum/ShowForum.aspx?ForumID=43";}
function atl5(){window.open("http://www.stargateatlantis.com/");}
function atlm1(){window.location.href = "episodeguide.aspx?eid=9";}
function atls1(){window.location.href = "/programmes/stargatesg1/";}
function atls2(){window.location.href = "/programmes/battlestar/";}
function atls3(){window.location.href = "/scifi/";}
function atls4(){window.location.href = "/programmes/hex/";}
function atls5(){window.location.href = "/programmes/4400";}
function atls6(){window.location.href = "/programmes/angel/";}
function atls7(){window.location.href = "/programmes/enterprise/";}

function dedm1(){	window.location.href = "episodeguide.aspx?eID=12"	}
function deds1(){	window.location.href = "/24/"}
function deds2(){	window.location.href = "/programmes/coldcase/"}
function deds3(){	window.location.href = "/programmes/dreamteam/"}
function deds4(){	window.location.href = "/programmes/milehigh/"}
function deds5(){	window.location.href = "/programmes/battlestar/"}
function deds6(){	window.location.href = "/programmes/stargatesg1/"}
function deds7(){	window.location.href = "/programmes/enterprise/"}
function ded1(){	window.location.href = "interview.aspx"}
function ded2(){	window.location.href = "deadcount.aspx"}
function ded3(){	window.location.href = "quiz.aspx"}
function ded4(){	window.location.href = "gallery.aspx"}
function ded5(){	window.location.href = "showoverview.aspx"}

function sta1(){window.location.href = "castprofile.aspx";}
function sta2(){window.location.href = "/scifi/interview.aspx?iID=11";}
function sta3(){window.location.href = "gallery.aspx";}
function sta4(){window.location.href = "showoverview.aspx";}
function sta5(){window.open("http://www.stargatesg1.com/home.html");}
function starm1(){window.location.href = "episodeguide.aspx?eID=9";}
function stars1(){window.location.href = "/programmes/battlestar/";}
function stars2(){window.location.href = "/programmes/hex/";}
function stars3(){window.location.href = "/programmes/enterprise/";}
function stars4(){window.location.href = "/scifi/";}
function stars5(){window.location.href = "/celebrity/";}
function stars6(){window.location.href = "/programmes/angel/";}
function stars7(){window.location.href = "/programmes/brainiac/";}
function starhome(){window.location.href = "/programmes/stargatesg1/";}

function scifi1(){window.location.href = "interview.aspx?iid=24";}
function scifi2(){window.location.href = "/programmes/4400/";}
function scifi3(){window.location.href = "/programmes/angel/";}
function scifi4(){window.location.href = "/programmes/battlestar/";}
function scifi5(){window.location.href = "/programmes/atlantis/";}

function homem1(){window.location.href="http://www.skyone.co.uk/programmes/4400/ ";}
function home1(){window.location.href	=	"/programmes/thematchreunion/";}
function home2(){window.location.href	=	"/programmes/enterprise/tpolgallery.aspx";}
function home3(){window.location.href	=	"/programmes/longwayround/auction.aspx";}
function home4(){window.location.href = "/competitions/drbunhead.aspx";}
function home5(){window.location.href = "http://www.skyone.co.uk/programmes/angel/jossfactfile.aspx ";}

function skyonehome(){window.location.href="/";}

function celeb1(){window.location.href = "http://www.skyone.co.uk/programmes/4400/interviews.aspx";}
function celeb2(){window.location.href = "http://www.skyone.co.uk/programmes/atlantis/interviews.aspx ";}
function celeb3(){window.location.href = "http://www.skyone.co.uk/programmes/dreamteam/timsmithinterview.aspx ";}
function celeb4(){window.location.href = "http://www.skyone.co.uk/programmes/hex/interview.aspx?iid=5 ";}
function celeb5(){window.location.href = "http://www.skyone.co.uk/programmes/timlovejoy/TimInterview.aspx ";}

function must1(){window.location.href = "http://www.skyone.co.uk/programmes/4400/episodeguide.aspx?eid=3 ";}
function must2(){window.location.href = "http://www.skyone.co.uk/programmes/atlantis/showoverview.aspx ";}
function must3(){window.location.href = "http://www.skyone.co.uk/programmes/battlestar/bat_quiz1.aspx ";}
function must4(){window.location.href = "http://www.skyone.co.uk/programmes/dreamteam/crimeandpunishment.aspx ";}
function must5(){window.location.href = "http://www.skyone.co.uk/programmes/brainiac/obliteration.aspx ";}

function guide1(){window.location.href = "http://www.skyone.co.uk/programmes/4400/castprofile.aspx ";}
function guide2(){window.location.href = "http://www.skyone.co.uk/programmes/limofever/showoverview.aspx ";}
function guide3(){window.location.href = "http://www.skyone.co.uk/programmes/brainiac/quiz1.aspx ";}
function guide4(){window.location.href = "http://www.skyone.co.uk/programmes/atlantis/ ";}
function guide5(){window.location.href = "http://www.skyone.co.uk/programmes/edvsspencer/ ";}

function hex1(){window.location.href = "HauntedPlaces.aspx";}
function hex2(){window.location.href = "interview.aspx?iid=5";}
function hex3(){window.location.href = "sexyheroines.aspx";}
function hex4(){window.location.href = "/skyoneforum/ShowForum.aspx?ForumID=20";}
function hex5(){window.open("http://uk.download.yahoo.com/ads/fu/hex/launch/index.htm");}
function hexm1(){window.location.href = "episodeguide.aspx?eID=4";}

function hexs1(){window.location.href = "/programmes/stargatesg1/";}
function hexs2(){window.location.href = "/programmes/battlestar/";}
function hexs3(){window.location.href = "/programmes/enterprise/";}
function hexs4(){window.location.href = "/programmes/angel/";}
function hexs5(){window.location.href = "/mustsee";}
function hexs6(){window.location.href = "/scifi/";}
function hexs7(){window.location.href = "/celebrity/";}

function t44001(){window.location.href = "interviews.aspx?iID=1";}
function t44002(){window.location.href = "critics.aspx";}
function t44003(){window.location.href = "gallery.aspx";}
function t44004(){window.location.href = "characterprofile.aspx";}
function t44005(){window.location.href = "feature.aspx";}

function t4400s1(){window.location.href = "../deadwood/";}
function t4400s2(){window.location.href = "/24/";}
function t4400s3(){window.location.href = "../hex/";}
function t4400s4(){window.location.href = "../stargatesg1/";}
function t4400s5(){window.location.href = "../battlestar/";}
function t4400s4(){window.location.href = "/scifi/";}
function t4400s5(){window.location.href = "/mustsee/";}

function t4400m1(){window.location.href = "episodeguide.aspx?eid=3";}

function checkForm()
{
	strError = ""
	
	if((document.competition.answer[0].checked == false) && (document.competition.answer[1].checked == false) && 		(document.competition.answer[2].checked == false))
	{
		strError += "Please select your answer\n"
		
	}
	
	if((document.competition.cusername.value == "") || (document.competition.cpassword.value == "") ||
	(document.competition.cusername.value == "username") || (document.competition.cpassword.value == "password"))
	{
		strError += "Please enter your login details\n"
	}
	
	if((document.competition.emfone.value == "Phone Number") || (document.competition.emfone.value == ""))
	{
		strError += "Please enter the Number you'll be availabe on\n"
	}

	
	if(strError != "")
	{
		alert(strError)
		return false;
	}
	else
	{
		return true
	}
	
}
