function PopUp(URL,Name,w,h,a,t) {
	
	// launches a new popup window with the 
	// option to set the window's attributes

	// collect attributes
	var winN = Name;		// set the value of the window's name (no spaces allowed)
	var winW = w;			// set window's width to passed width (if any)
	var winH = h;			// set window's height to passed height (if any)
	var aVal = a;			// set the value of the window's attributes (if any)
	var tVal = t;			// set the value of the window's toolbar
   
	// set attributes if undefined
	if (!winN) winN = Math.round(Math.random() * 1000000000); // set window name to a random number if undefined
	if (!winW) winW = 400;						// set window width if undefined
	if (!winH) winH = 400;						// set window height if undefined
	if (!aVal) aVal = "yes";					// set window default attribute value
	if (!tVal) tVal = "yes";					// set window default toolbar value
   
	// open popup window
	var newWin= window.open(URL,winN,'width=' + winW + ',height=' + winH + ',resizable=' + aVal + ',scrollbars=' + aVal + ',toolbar=' + tVal);
	newWin.focus();		     // set focus on the new window
}


