
/* Synchronize height left and height right 
------------------------------------------------------------------------------ */
function syncHeights ()
{
   var mxHeight = 0;
   for (var i = 0; i < arguments.length; i ++)
        {
      mxHeight = Math.max(mxHeight, arguments[i].offsetHeight);
   }

   for (var i = 0; i < arguments.length; i ++)
       {
      document.all && !window.opera
      ?   arguments[i].style.height = mxHeight + 'px'
      :   arguments[i].style.minHeight = mxHeight + 'px';
       }
} 

window.onresize = window.onload = function () {
syncHeights (
   document.getElementById("content"),
   document.getElementById("mainContent")
);
} 


/* Pop up windows function
------------------------------------------------------------------------------ */
var popUpWin=0;

function popUpWindow(URLStr, left, top, width, height)

{
  left = '100';
  top = '100';
  width = '680';
  height = '530';

  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}
