function ShowNewWindow (URL_ADDRESS,Name,Width,Height) { popup = window.open(URL_ADDRESS,Name,"height="+Height+",width="+Width+",scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes") popup.focus(); } function ShowNewWindowNoToolBars(URL_ADDRESS,Name,Width,Height) { var ScreenWidth = 0; var ScreenSpace=0; // If Width or Height is not specified than size the window based on the screen space available from the first window if (window.opener == null) {ScreenSpace=this.innerWidth} else if (window.opener.innerWidth == null) {ScreenSpace=this.innerWidth} else {ScreenSpace=window.opener.innerWidth} if (Width>0 && Height>0) // Use the Width and Height specified {} else if (ScreenSpace>1000) { Width=1000 Height=700 } else if (ScreenSpace>700) { Width=780 Height=540 } else { Width=620 Height=400 } popup=window.open(URL_ADDRESS,Name,"height="+ Height+",width="+Width+",scrollbars=no,menubar=no,toolbar=no,location=no,status=no,resizable=no"); popup.focus(); }