var website = 'http://www.nellicoomangames.nl/';function reload(form) { 
  var reloadurl='';
  var val=form.personen.options[form.personen.options.selectedIndex].value;
  reloadurl = '?aantalPersonen=' + val;
  self.location = reloadurl; 
}

function clearIt( box ) {
  if(box.value==box.defaultValue) {
	  box.value = "";
	}
}

function showhide( show, hide ) {
  var show = document.getElementById(show);
  var hide = document.getElementById(hide);
  
  show.style.display = "block";
  hide.style.display = "none";
}

function get(eN) {
  if(document.getElementById) {
    return document.getElementById(eN);
  } else if(document.all) {
    return document.all[eN];
  } else {
   return null;
  }
}

function getpostcodes() {
  var pc=document.getElementById('postcode');
  var no=document.getElementById('nummer');
  if (pc && no) {
    if (pc.value && no.value) {
      URL = website + 'assets/postcode.php?postcode='+pc.value+'&nummer='+no.value;
      getJavaCode(URL);
    }
  }
}
