var popupDefaults = new Array();
popupDefaults.width = 580;
popupDefaults.height = 450;

window.name = "main";
/*****************************************************************************
 * Pop up a new window
 ****************************************************************************/
function popup( url, width, height, scroll ) {
	scroll = (scroll=="no") ? "no" : "yes"; // default scroll to yes
	width =  isNaN(parseInt(width)) ? popupDefaults.width : parseInt(width);
	height =  isNaN(parseInt(height)) ? popupDefaults.height : parseInt(height);

	var win = window.open( url, "win","directories=no,innerHeight="+height+",innerWidth="+width+",height="+height+",width="+width+",location=no,menubar=no,resizable=yes,scrollbars="+scroll+",status=no,toolbar=no" );
	win.focus();
}
/* stopgap function that makes some assumptions about a popup and only takes 1 argument */
function poptastic(url) {
	popup(url, 800,600);
}