function openWindow(path, windowname, w, h, scroll) {
	// Name the Window, so the remote can target it - if required
	self.name = "Master_Window"; 
	
	// determine center of screen
	if (screen.width) {
		// IE
		var xMax = screen.width;
		var yMax = screen.height;
	} else {
		if (window.outerWidth) {
			// mozilla
			var xMax = window.outerWidth;
			var yMax = window.outerHeight;		
		} else {
			// Catch all
            var xMax = 800; 
			var yMax=600;
		}
	}
	
    var xOffset = (xMax - w)/2;
	var yOffset = (yMax - h)/2;
	
	var opts = "scrollbars=" + scroll + ",resizable=yes,width=" + w + ",height=" + h + ",left=" + xOffset + ",top=" + yOffset +",screenX=" + xOffset + ",screenY=" + yOffset;
	// open it and maintain a var to it
	var Child = window.open(path, windowname, opts);
}