
//******************************************************************************************************
function fNewWinURL( strURL, strWinName, strWidth, strHeight ) {
//******************************************************************************************************

  if (typeof(strWidth) == 'undefined') {
    strWidth = "";
  } else {
    strWidth = ",width=" + strWidth;
  }

  if (typeof(strHeight) == 'undefined') {
    strHeight = "";
  } else {
    strHeight = ",height=" + strHeight;
  }
    
//  alert('width = |' + strWidth + '|\n' + 
//        'height = |' + strHeight + '|' ) ; 
    
  strWinProp = " toolbar=no"        //Back, Forward, etc...
               + ",location=no"     //URL field
               + ",directories=no"   //"What's New", etc...
               + ",status=no"       //Status Bar at bottom of window.
               + ",menubar=no"       //Menubar at top of window.
               + ",resizable=no"    //Allow resizing by dragging.
               + ",scrollbars=no"   //Displays scrollbars if document is larger than window.
               + ",titlebar=yes"     //Displays titlebar. Signed script required for "no" to work in Netscape.
               + ",top=0"            //Offset of windows top edge from screen.
               + ",left=0"           //Offset of windows left edge from screen.
               + ",width=705"        //Standard 640,800/788, popup's 350
               + ",height=380"       //Standard 480,600/541, popup's 500              
               + strWidth            //Width
               + strHeight           //Heigth
               + "";

  winMsg = window.open(strURL, strWinName, strWinProp);  //parms: URL,window name,properties.
  winMsg.focus();
}

