function ContentResize() {
  if( $('.content-container') != null ) {
    $(".body-container > .content #actualcontent").height($('.content-container').outerHeight(true));

    var intBodyHeight = $('.body-container > .header-container').outerHeight()+$('.body-container > .content').outerHeight()+$('.body-container > .footer-container').outerHeight();

    if( intBodyHeight < $(document).height() ) {
      intBodyHeight = $(document).height();
    }

    $(".body-container").height(intBodyHeight);
  }
}

function zeroFill( number, width ){
  width -= number.toString().length;
  if ( width > 0 ){
    return new Array( width + (/\./.test( number ) ? 2 : 1) ).join( '0' ) + number;
  }
  return number;
}

$(window).resize(ContentResize);
//$(window).load(function() {
  /* This is really necessary, because of the absolute positioned content.. */
 // ContentResize();
//});

$(window).ready(function(){
  ContentResize();
});

function noAccess(){
	alert("Voor dit gedeelte van de website dient je ingelogd te zijn");
}

function is_int(value){
   for (i = 0 ; i < value.length ; i++) {
      if ((value.charAt(i) < '0') || (value.charAt(i) > '9')) return false 
   }
   return true;
}


var __win= null;
function OpenNewWindow(mypage,w,h,myname){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,toolbar=no';
  __win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){
    __win.window.focus();
  }
}
// end script here -->
