function openWindow (url, id, w, h, features, centering) { var s = (w ? ("width=" + w) : "") + (h ? (",height=" + h) : ""); var ss = new Array ("menubar", "toolbar", "location", "scrollbars", "status", "resizable"); if (features) for (var i=0; i<6; i++) s += "," + ss [i] + "=" + features.charAt (i); if (centering) { var x = (screen.width / 2) - (w / 2 + 10); var y = (screen.height / 2) - (h / 2 + 10); s += ",left=" + x + ",top=" + y + ",screenX=" + x + ",screenY=" + y; } var o = window.open (url, id, s); o.focus (); return o; }

