
if (top.location != self.location) top.location = self.location;






function changeSelectStatus(theForm,boxchecked)
{
	if (boxchecked=="wlcball1")
	{
		if (theForm.wlcball1.checked)
		{
			theForm.wlcball2.checked = true;
		}
		else
		{
			theForm.wlcball2.checked = false;
		}
	}
	if (boxchecked=="wlcball2")
	{
		if (theForm.wlcball2.checked)
		{
			theForm.wlcball1.checked = true;
		}
		else
		{
			theForm.wlcball1.checked = false;
		}
	}
    for (i=0,n=theForm.elements.length;i<n;i++)
        if (theForm.elements[i].name.indexOf('wlcb_') !=-1)
			if (theForm.wlcball1.checked || theForm.wlcball2.checked)
			{
	            theForm.elements[i].checked = true;
	        }
	        else
	        {
				theForm.elements[i].checked = false;
	        }
}



function dojump() 
	{ 
	document.location.href = "play247.asp?page=promo&id=316&r=R2";
	}


function xmasjump()
	{
	document.location.href = "play247.asp?page=xmas";
	}



function jansalejump()
	{
	document.location.href = "play247.asp?page=jansale";
	}

function valentinesjump()
	{
	document.location.href = "play247.asp?page=valentines";
	}

function easterjump()
	{
	document.location.href = "play247.asp?page=easter";
	}

function fdjump()
	{
	document.location.href = "play247.asp?page=fathersday";
	}

function salejump()
	{
	document.location.href = "play247.asp?page=summersale";
	}

function saleregionjump(theLink)
	{
	document.location.href = theLink;
	}

function jansaleregionjump(theLink)
	{
	document.location.href = theLink;
	}



	var screenheight = screen.availHeight - 10;
	var screenwidth = screen.availWidth - 10;
	var popupWidth = 600;
	var popupHeight = 600;
	var popupX = screenwidth - popupWidth;
	var popupY = 10;


	var popx = screenwidth - 750;
	popx = popx/2;
	var popy = screenheight - popupHeight;
	popy = popy/2;




function PopUpLargeGadget(id,mainsite,pageArgs,localpur)
{
		var myString = new String();
		myString = pageArgs;
		var newString = new String ("+%26%+");
		var results = myString.replace("+&+", newString);

	alert("Please note that for security reasons this item will be shipped to your billing address.");	
	document.location.href=mainsite+results+localpur;
}

function showsearchtips (url)
	{
	var win = window.open(url,"","width=400,height=510,resizable=no,scrollbars=no");
	win.focus();
	}


function showMobilePhoneNetworks (url)
	{
	var win = window.open(url,"","width=400,height=400,resizable=no,scrollbars=yes");
	win.focus();
	}


function flagcorrections (url,id,region)
	{
	var win = window.open
			  (url+"?mode=correct&pid="+id+"&r="+region,
			   "corrections",
			   "width=400,height=400,resizable=no,scrollbars=no");
	win.focus();
	}


function siteseal()
	{
	var win = window.open("https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.PLAY.COM&lang=en", "win", "toolbar=0,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=560,height=480");
	win.focus();

	}


function goquicklinks()
	{
	var target = document.quicklinks.qldest[document.quicklinks.qldest.selectedIndex].value;			
	if( target != "0" )
		document.location.href=target;
	}


function browseGenre()
	{
	var target = document.frmBrowsegenre.browsegenre[document.frmBrowsegenre.browsegenre.selectedIndex].value;			
	if( target != "0" )
		document.location.href=target;
	}


function hyperlaunchPromo(url, windowName, width, height)
	{
		newWin = window.open(url,windowName,'width=' + width + ',height=' + height + ',alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=1,directories=0 ,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=50,screenY=50,left=50,top=50"');
	}

function hyperlaunchScrollable(url, windowName, width, height)
	{
		newWin = window.open(url,windowName,'width=' + width + ',height=' + height + ',alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=1,directories=0 ,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=50,screenY=50,left=50,top=50"');
	}




function openATrailer(trailer, name, width, height) 
	{
	var moviewin = window.open(trailer, name, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + width + ",height="+height);
	moviewin.focus();
	}
	
function hyperlaunchMGM(url, windowName, width, height)
	{
		newWin = window.open(url,windowName,'width=' + width + ',height=' + height + ',alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=1,directories=0 ,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=50,screenY=50,left=50,top=50"');
	}	
	

function PopUpTelegraphSurvey(url,winPage,winName,width,height)
{
	newWin = window.open(winPage,winName,'width=' + width + ',height=' + height + ',alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=1,directories=0 ,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=50,screenY=50,left=50,top=50"');	
	document.location.href=url;
}
