// **********************************************************
// FILE: lib.js
// AUTHOR: shelley@spcare.org
// DATE: July 2004
//
// Beginnings of a basic library of handy Javascript functions
// for common features like popup windows, etc. Please make
// sure that any code you add here is legal and not just nicked
// from the web. If necessary, include the required license or
// credit to ensure the CMS is not compromised
// **********************************************************

// ******************* Function: openNewWindow
// You guessed it, the standard plain vanilla popup window. This
// integrates with Smarty by including this library at the top of
// your template and then calling the function in your link, e.g.,
// <a href="#" onClick="OpenNewWindow('index.php?pid=58',{$config.site.popupwidth},{$config.site.popupheight});">
// Default values for width and height are set in /core/config.php under "Defaults"
// Written by: Geoffrey D. Hoffman <ghoffman@aztrib.com>
function OpenNewWindow(page) {
	w = popupWidth;
	h = popupHeight;
	OpenWin = this.open( page, "NewWindow", 
	"top=50,left=50,toolbar=no,height="+h+",width="+w+",location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
	);
}
