function popup(path, width, height, feat, notcenter) {
	if (!width)
	    width = 300;
	if (!height)
	    height = 300;
	if (feat == "full")
		feat = "toolbar=1,location=1,status=1,menubar=1,resizable=1,scrollbars=1";
	else 
		feat = "width="+width+",height="+height+(feat ? ","+feat : "");
	if (!notcenter) 
		feat = "left="+(screen.width/2-width/2)+",top="+(screen.height/2-height/2) + ","+feat;
  	var win = window.open(path, width+"x"+height, feat);
	win.focus();
}
