function openWindowRegio() {
  window.open('onlineboeken_regios.lp?search_regio='+document.frm.search_regio.value,'winRegio','width=500,height=430')
}
function openWindowDatum(strRef, strDate) {
  //window.open('onlineboeken_kalender.lp?ref='+strRef+'&date='+strDate, 'winKalender', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,left=150,top=20,width=320,height=180');
  window.open('onlineboeken_jaarkalender.lp?ref='+strRef+'&date='+strDate, 'winKalender', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,left=0,top=20,width=650,height=320');
}
function openWindowAccommodatie(strPark, strID, strAankomst, strVertrek) {
 window.open('onlineboeken_accommodatie.lp?park='+strPark+'&ID='+strID+'&search_aankomst='+strAankomst+'&search_vertrek='+strVertrek, 'winAccommodatie', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width=400,height=420');
}
function openWindowDatumHome(strRef, strDate) {
  //window.open('nl/campings/onlineboeken_kalender.lp?ref='+strRef+'&date='+strDate, 'winKalender', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,left=150,top=20,width=320,height=180');
  window.open('nl/campings/onlineboeken_jaarkalender.lp?ref='+strRef+'&date='+strDate, 'winKalender', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,left=0,top=20,width=650,height=320');
}
function SearchForm() {
  document.frm.search_simpleform.value = 0;
  document.frm.search.value = -1;
  document.frm.submit();
}
function NoRegio() {
  document.frm.search_regio.value = '';
  document.frm.submit();
}
function NoPark() {
  document.frm.search.value = 0;
  document.frm.search_simpleform.value = 0;
  document.frm.park.value = '';
  document.frm.parknaam.value = '';
  document.frm.submit();
}
function NoBeschikbaar() {
  document.frm.search_beschikbaar.value = 0;
  document.frm.submit();
}
function DoBeschikbaar() {
  document.frm.search_beschikbaar.value = 1;
  document.frm.submit();
}
function NavigatePage(intPage) {
  document.frm.blader_pagina.value = intPage;
  document.frm.submit();
}

function BookItVB(strCMSUser,pKlantNr,pAffiliate,pTaalCode,pObjectID,pDatum) {
  var strUrl = "http://www.virtueelboeken.nl/index.asp?u=" + pKlantNr + '&taal=' + pTaalCode + '&objecttype=' + pObjectID + '&movetodatum=' + pDatum;
  if (pAffiliate) {
    strUrl = "http://www.virtueelboeken.nl/index.asp?u=" + pKlantNr + "&affiliate_id=" + pAffiliate + "&type=affiliate&page=" + escape(strUrl);
  }
  TrackBookLink(strCMSUser);
  window.open(strUrl, 'winBookIt', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0,width=760,height=570,top=50,left=20');
}
function BookItRecon(strCMSUser,strPark,strTaal,strType,strObject) {
  TrackBookLink(strCMSUser);
  window.open("http://reconnect.ibuildings.nl/index.php?url=/"+strPark+"/boeken&type="+strType+"&object_id="+strObject, 'winBookIt', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,width=760,height=500,top=50,left=20');
}
function BookItTibos(strCMSUser,strPark,strTaal,strType,strObject) {
  TrackBookLink(strCMSUser);
  window.open("http://reconnect-tibos.ibuildings.nl/index.php?url=/"+strPark+"/boeken&type="+strType+"&object_id="+strObject, 'winBookIt', 'toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1,width=760,height=500,top=50,left=20');
}
function BookItURL(strCMSUser,strURL,strName,strParam) {
  TrackBookLink(strCMSUser);
  if (strName == '') strName = 'winBookIt';
  window.open(strURL, strName, strParam);
}

function TrackBookLink(strCMSUser) {
  if (document.getElementById('imgTrack')) document.getElementById('imgTrack').src = "http://track.holidaymedia.nl/htp/track.lp?c=zoekenboek_outboundlinks&i="+strCMSUser;
}