function getElement(id)
{
  if (document.getElementById)
  {
    return document.getElementById(id);
  } else if (document.all)
  {
    return document.all[id];
  } else if (document.layers)
  {
    return document.layers[id];
  }
}
function launch_cataloguev2(urlbasekta, param, WidthCataClient, HeightCataClient)
{
  var WidthCata = 1000;
  var HeightCata = 670;
  var ns4 = (document.layers) ? true : false;
  var ie4 = (document.all) ? true : false;
  var dom = (document.getElementById) ? true : false;
  if (WidthCataClient != undefined)
  {
    WidthCata = WidthCataClient;
  }
  if (HeightCataClient != undefined)
  {
    HeightCata = HeightCataClient;
  }
  var xMax,yMax,xOffset,yOffset;
  if (ie4 || dom)
  {
    xMax = screen.width;
    yMax = screen.height;
  } else if (ns4)
  {
    xMax = window.outerWidth;
    yMax = window.outerHeight;
  } else
  {
    xMax = 1024;
    yMax = 768;
  }
  xOffset = (xMax - WidthCata) / 2;
  yOffset = (yMax - HeightCata) / 2;
  ktawin = window.open(urlbasekta, 'catalogue', 'width=' + WidthCata + ',height=' + HeightCata + ',screenX=' + xOffset + ',screenY=' + yOffset + ',top=' + yOffset + ',left=' + xOffset + ',scrollbars=no,resizable=yes,status=no,menubar=no');
  ktawin.focus();
}

