// JavaScript Document

var WindowObjectReference = null; // global variable

function popUpWindow(uri, win_width, win_height, target_window, win_title) {
	target_window = (target_window == null)? "_blank": target_window;
	win_width = (win_width == null)? "700": win_width;
	win_height = (win_height == null)? "550": win_height;
	
	var specsDefaulte = "fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=0,status=1,titlebar=1,toolbar=0"
	var specs = "width=" + win_width + ",height=" + win_height + "," + specsDefaulte;
	
	WindowObjectReference = window.open(uri, target_window, specs);
	
/*	WindowObjectReference.onload = function() {
		alert("win_title = " + win_title);
	} 
	//Set window title if one is given
	if (win_title != null && win_title.length > 0) {
		WindowObjectReference.document.title = win_title;
	}
*/	
	WindowObjectReference.focus();
}
