var mypopups = new Object(); // window collection
	function popup(){
/* set defaults first
here we make it possible to send OPTIONAL arguments for (first) a URL and next a window NAME
this can be extended to do the same for popup size, position, or other attributes */
var myURL = (arguments[0])? arguments[0]:'http://www.jimmont.com/resrc/src/', popupName = (arguments[1])? arguments[1]:'mySite', popupWidth = 500, popupHeight = 300;
var popupX = (screen.availWidth)? ((screen.availWidth - popupWidth) / 2): 20;
var popupY = (screen.availHeight)? ((screen.availHeight - popupHeight) / 3):20;
var details = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width='+popupWidth+',height='+popupHeight+',top='+popupY+',left='+popupX;

// finally create the window and bring it to the foreground
mypopups[popupName] = window.open(myURL,popupName,details);
mypopups[popupName].focus();
	}
