   /*------------------------------------------------------------------------------
    function name:  popup

    arguments:      url (string): URL to open
    				windowName (string): Name of window (no hyphens or underscores; keep short)
    				height (int): Height of new window
    				weight (int): Width of new window

    description:    Opens the passed URL in a popup window with the passed height / width
    ------------------------------------------------------------------------------*/
var newwindow = null;

function popup(url, windowName, width, height) {	
	width += 2
	height += 2
	if(newwindow && newwindow.open && !newwindow.closed) {
		newwindow.innerHeight = height;
		newwindow.innerWidth = width;
		newwindow.location = url;
	} else {	
		newwindow = window.open(url,windowName,'height=' + height + ',width=' + width + ',toolbar=no,location=no,directories=no,menubar=no;status=yes,scrollbars=yes,resizable=yes');
	}
	
	if (window.focus) { newwindow.focus(); }
}

function printPage() {
	window.print();
}
