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="\/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 show(sw, obj) {
  if (sw) document.getElementById(obj).style.display = "block";
  if (!sw) document.getElementById(obj).style.display = "none";
}

function init() {
  equalize();  
}

function equalize() {
	var columns = new Array ('left','right');
	var maxHeight =	0;
	for (var i = 0;i< columns.length;i++) {
		if ( document.getElementById( columns[i] ).offsetHeight > maxHeight ) {
			maxHeight = document.getElementById( columns[i] ).offsetHeight;
		}
	}
	for (var i=0;i<columns.length;i++) {
		column = document.getElementById( columns[i] );
		grow   = maxHeight - column.offsetHeight;
		column.innerHTML += '<div style="height:'+ grow +'px; overflow: hidden;"></div>';
	}
}

function reload(form) { 
  var reloadurl='';
  var val=form.personen.options[form.personen.options.selectedIndex].value;
  reloadurl = './schokland_inschrijven.php?aantalPersonen=' + val;
  self.location = reloadurl; 
}
