// *** popupPage.js ***
//
// Used to open a popup window
// Updated 6/19/01
// ARGUMENTS:
//	page = the URL of the page to display (in apostrophes)
//	w = width in pixels
//	h = height in pixels

function popupPage(page, w, h) 
{
	windowprops = "height=" + h + ",width=" + w + ",location=no,"
	+ "scrollbars=yes,menubars=no,toolbars=no,resizable=yes";

	window.open(page, "Popup", windowprops);
}
function popupPageLoc(page, w, h, x, y) 
{
	windowprops = "height=" + h + ",width=" + w + ",location=no,"
	+ "scrollbars=no,menubars=no,toolbars=no,resizable=yes, screenX=" + x + ", screenY=" + y + ", left=" + x + ", top=" + y;

	window.open(page, "winder", windowprops);
}

function popupPageScroll()
{
	window.open('popupscroller.html', 'Site Design', 'width=350, height=300, scrollbars=no, screenX=100, screenY=25, resizable=no');
}



// To load the popup automatically when the page loads, use:
//     <BODY onLoad="popupPage('popup.htm', w, h);"> 
//     where popup.htm is the page to display, w is width, h is height.
// to set a delay in the popup of the window use the following:
//     <Body onLoad="setTimeout('popupPage('popup.htm', w, h)', 0);"> 
// (Note: this replaces onLoad="popupPage()")
// 0 represents the delay time in milliseconds. 
// 2000 = 2 secs, etc.
//
// The code for the CLOSE WINDOW button is:
//	<a href="javascript:window.close()">Close Window</a>
//
// The code to force the window to stay visible is:
//	<body onBlur="self.focus();">
//
// The necessary <SCRIPT> tag is:
//    <SCRIPT LANGUAGE="JavaScript1.2" SRC="popupPage.js"></SCRIPT>
// Note: you will have to correct the path in the SRC attribute.
