\n'); } function makeWin(url, lWidth, lHeight) { // START IMAGE SIZE TEST sWidth = screen.width; sHeight = screen.height; if (lWidth > (sWidth + 50)) { finalWidth = sWidth - 100; } else { finalWidth = lWidth + 50; } if (lHeight > (sHeight + 50)) { finalHeight = sHeight - 100; } else { finalHeight = lHeight + 50; } // END IMAGE SIZE TEST agent = navigator.userAgent; windowName = "APWDrawing"; params = ""; params += "toolbar=0,"; params += "location=0,"; params += "directories=0,"; params += "status=0,"; params += "menubar=0,"; params += "scrollbars=1,"; params += "resizable=1,"; params += "width=" + finalWidth + ","; params += "height=" + finalHeight; win = window.open(url, windowName , params); if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) { win = window.open(url, windowName , params); } if (!win.opener) { win.opener = window; } }; function clearOld(){ output_str = ""; } /* function sizing_DoFScommand(commands,args){ switch(command) { case "buildstring": output_str += args; break; case "clear": clearOld(); break; case "save": saveWindow(); break; } } */