// PopOpen
// Written by Tom Callen
//
// Purpose:
//      This script allows for the easy creation of a link which spawns a new
//      web browser window in which there are no user controls within the
//      window, such as menu bar, toolbar, etc. Size of the window is dictated
//      by the size parameters passed into this function.
//
// Syntax:
//      PopOpen(openthis,wVal,hVal)
//
//      where...
//      openthis is the full URL of the web page to display in the new window.
//      wVal is the width of the window (in pixels).
//      hVal is the height of the window (in pixels).
//
//      if wVal and/or hVal were not supplied values, they default to a value of 500.
//
//      if end user has a pop-up blocker active and the window fails to open, they are notified.
//

function PopOpen(openthis,wVal,hVal) {

	if (isNaN(wVal)) { wVal = 500; }
	if (isNaN(hVal)) { hVal = 500; }

	var GoHere = window.open('http://'+openthis, Math.floor(Math.random()*101),'menubar=no, toolbar=no, status=no, scrollbars=yes, resizable=yes, location=no, width=' + wVal + ', height=' + hVal );

	if (!GoHere) {
		alert("Please disable your pop-up blocker to view this content.");
	}

}