var newWindow; function subWindow() { if (arguments.length < 1) { alert("function subWindow called with " + arguments.length + " arguments, but it expects at least 1 arguments."); return null; } var heightval = arguments[1] != null ? arguments[1] : 480; var widthval = arguments[2] != null ? arguments[2] : 640; var filename = arguments[3] != null ? arguments[3] : ""; var scrollbars = arguments[4] != null ? arguments[4] : 1; var LeftPosition = (screen.width) ? (screen.width-widthval)/2 : 0; var TopPosition = (screen.height) ? (screen.height-heightval)/2 : 0; var dimensions = "directory=0,height="+heightval+",width="+widthval+ ",left="+LeftPosition+",top="+TopPosition+",resizable=1,statusbar=0,hotkeys=0,menubar=0,scrollbars="+scrollbars+",status=0,toolbar=0"; var newWindow = window.open(filename,arguments[0],dimensions); {newWindow.focus()} if (!filename) { newWindow.document.write("