/*

Created by Glenn Dempsey
Last modified: March 1, 2005

Example of use:

<a href="Javascript:openDisclaimerWindow('http://tv.disney.go.com/disneychannel/global/disclaimer/370x210.html?type=newWindow&goTo=http://www.thewiggles.com.au/','370','210');">http://www.thewiggles.com.au/</a>

Be sure to URL escape the goTo value if it contains question marks and characters that might confuse the redirect script

There are two ways to link to the new site:  opener and newWindow.  opener will use the current browser window to link to the outside site, and newWindow will create a new window.

Place this js file on any page that is going to use the disclaimer.
<script language="JavaScript" src="http://tv.disney.go.com/disneychannel/global/disclaimer/functions.js" type="text/javascript"></script>

*/


var putItThere = null;

function openDisclaimerWindow (URL,popupWidth,popupHeight) {

	var screenXW = screen.availWidth - popupWidth -10;
	var screenYW = 0;

	putItThere = window.open(URL,"popup","width=" + popupWidth + ",height=" + popupHeight + ",toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,left=" + screenXW + ",top=" + screenYW + ",screenX=" + screenXW + ",screenY=" + screenYW);
}
