
function openWindow (url,name,width,height,toolbar,loc,status,scrollbars,resizable,menubar,left,top,customprops)
{
	var props = "";
	if (width) props += ",width=" + width;
	if (height) props += ",height=" + height;
	if (toolbar) props += ",toolbar=" + toolbar;
	if (loc) props += ",location=" + loc;
	if (status) props += ",status=" + status;
	if (scrollbars) props += ",scrollbars=" + scrollbars;
	if (resizable) props += ",resizable=" + resizable;
	if (menubar) props += ",menubar=" + menubar;
	if (left) props += ",screenX=" + left + ",left=" + left;
	if (top) props += ",screenY=" + top + ",top=" + top;
	if (customprops) props += "," + customprops;
	if (props != "") props = props.substring(1);


	w = window.open(url, name, props);
	
	if (w)
		w.focus();
	//return false;
}
