var website = 'http://www.onrust.net/';
function fotopop(foto, alttekst, breed, hoog) {
  venster=window.open
  ('','','width='+breed+',height='+hoog+',left=10,top=10,screenY=10,screenX=10');
    with(venster.document) {
	  open();
	  write('<head><title>'+alttekst+'</title></head>\n');
	  write('<body marginwidth=0 marginheight=0 style="margin:0;" onblur="window.close()" onclick="window.close()">\n');
	  write('<a href="#" style="cursor:hand;"><img src="'+website+'abc/data/'+foto+'" width='+breed+' height='+hoog+' border="0" /></a>\n');
	  write('</body></html>');
	  close();
  }
}

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 = './assets/postcode.php?postcode='+pc.value+'&nummer='+no.value;
      getJavaCode(URL);
    }
  }
}

function fontGroter() {
  var p = document.getElementsByTagName('p');
  for(i=0;i<p.length;i++) {
    if(p[i].style.fontSize) {
      var s = parseInt(p[i].style.fontSize.replace("%",""));
    } else {
      var s = 100;
    }
    s+=10;
    p[i].style.fontSize = s+"%";
  }
}

function fontKleiner() {
  var p = document.getElementsByTagName('p');
  for(i=0;i<p.length;i++) {
    if(p[i].style.fontSize) {
      var s = parseInt(p[i].style.fontSize.replace("%",""));
    } else {
      var s = 100;
    }
    s-=10;
    p[i].style.fontSize = s+"%";
  }
}

function fontStandaard() {
  var p = document.getElementsByTagName('p');
  for(i=0;i<p.length;i++) {
    var s = 100;
    p[i].style.fontSize = s+"%";
  }
}