// initialize global var for new window object
// so it can be accessed by all functions on the page
var newWind 
// set flag to help out with special handling for window closing
var isIE3 = (navigator.appVersion.indexOf("MSIE 3") != -1) ? true : false
//

// make the new window and put some stuff in it
function newWindow(url, w, h) {
	
	var attr="scrollbars=yes,resizable=yes,menubar=yes,width=" + w + ",height=" + h
	
	if (newWind && !newWind.closed)
	{
		newWind.open(url,"sub",attr)
		newWind.focus()
	}
	else
	{
		newWind = window.open(url,"sub",attr)
		// take care of Navigator 2
		if (newWind.opener == null) {
			newWind.opener = window
		}
	}
	return false
	
}
