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=850
   Height=650
   }
else if (ScreenSpace>700)
   {
   Width=850
   Height=650
   }
else
   {
   Width=640
   Height=480
   }
popup=window.open(URL_ADDRESS,Name,"height="+ Height+",width="+Width+",scrollbars=yes,menubar=no,toolbar=no,location=no,status=no,resizable=yes");
popup.focus();
}

