function openwin (theURL, imgFolder, wName, width, height, posX, posY, wTitle, wRealTitle, wBorderColor, wBorderColorSel, titlebgColor, titlebgColorSel, sFontFamily, sFontSize, sFontColor, hideX) {

  var s = ",width=" + width + ",height=" + height;

  if (posX == null) posX = Math.ceil ((window.screen.width - width) / 2);
  if (posY == null) posY = Math.ceil ((window.screen.height - height) / 2);


    var myOpenWin = window.open (theURL, wName, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1" + s, true);
    myOpenWin.moveTo (Math.ceil (posX), Math.ceil (posY));


  myOpenWin.focus ();
  return myOpenWin;

}
