var xs_exp = new Date(); xs_exp.setTime(xs_exp.getTime()+(48*60*60*1000));
var miz=' moet ingevuld zijn';

function Trim(psValue)
{
  if(psValue.length > 0)
  {
    psValue = LTrim(psValue);
    psValue = RTrim(psValue);
  }

  return psValue;
}

function RTrim(psValue)
{
  var w_space = String.fromCharCode(32);

  while (psValue.length > 0)
  {
    if (psValue.charAt(psValue.length - 1) == w_space)
      psValue = psValue.substring(0, psValue.length - 1);
    else
      break;
  }

  return psValue;
}

function LTrim(psValue)
{
  var w_space = String.fromCharCode(32);

  while (psValue.length > 0)
  {
    if (psValue.charAt(0) == w_space)
      psValue = psValue.substring(1, psValue.length);
    else
      break;
  }

  return psValue;
}

function CmpPick(sAdres, iMenu)
{
  document.getElementById('IFRM').src = sAdres;

  for (iSub = 0; iSub < 8; iSub++)
  {
    document.getElementById('Mn' + iSub).className = '';
  }

  document.getElementById('Mn' + iMenu).className = 'current';
  return null;
}

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
/*  window.alert( 'Width = ' + myWidth );
  window.alert( 'Height = ' + myHeight );    */

  return myHeight;
}

function ReadjustFrame(iHeight)
{
  AFrame = document.getElementById('IFRM');
  if (AFrame != null)
  {
    AFrame.style.height = (alertSize() - iHeight);
  }
}


