function openPopupWindow(path, name, wd, hgt, return_win_ref, menubar, resizable, scrollbars, titlebar, toolbar, alwaysRaised) {	
for (var i=arguments.length; i<openPopupWindow.length; i++) {
if (typeof(arguments[i]) == "undefined" && i == 7) {
arguments[i] = "yes";
} else {
arguments[i] = "no";
}
}	
	
var win_parameter = 'width=' + arguments[2] + ', height=' + arguments[3] + ', menubar=' + arguments[5] + ', resizable=' + arguments[6] + ', scrollbars=' + arguments[7] + ', titlebar=' + arguments[8] + ', toolbar=' + arguments[9] + ', alwaysRaised=' + arguments[10];
var win_obj = window.open(path, name, win_parameter);	
if (return_win_ref)	{
return win_obj;
}
}

function openMapWindow(url) {
window.open(url, 'map', 'width=478,height=333,top=170,left=162,toolbar=no,location=no,directories=no,status=no,menubar=no,dependent=yes,resizable=no,status=no,scrollbars=no');
}

function openWindow(path, winname) {
window.open(path, 'winname', 'width=1, height=1, menubar=no, resizeable=yes, scrollbars=no, titlebar=no, toolbar=no');
}

function openMapWindow(path, name, width, height) {
parameter = "width = " + width + ", height= " + height + ", menubar=no, resizeable=no, scrollbars=yes, titlebar=no, toolbar=no";
window.open(path, name, parameter);
}