// 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;

function openWindow(fileUrl,winWidth,winHeight){

	// close subwindow, including ugly workaround for IE3 //

	if (isIE3) {

	// if window is already open, nothing appears to happen //
	//   but if not, the subwindow flashes momentarily (yech!) //
	   
		newWind = window.open("","subwindow",'HEIGHT=' + winWidth + ',WIDTH=' + winHeight);
        }
        if (newWind && !newWind.closed) {
                newWind.close();
        }

	// make the new window and put some stuff in it //
	
	newWind=window.open(fileUrl,"subwindow",'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=' + winWidth + ',height=' + winHeight);
}