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\/upload\/'+foto+'" width='+breed+' height='+hoog+' border="0"></a>\n');
	  write('<\/body><\/html>');
	  close();
  }
}

function clearIt( box ) {
  if(box.value==box.defaultValue) {
	  box.value = "";
	}
}

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;
		}
	}
	
	if (maxHeight < 430) {
	  maxHeight = 430;
	}
	
	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 inlog_setFocus() {
  var f = null;
  if (document.getElementById) { 
    f = document.getElementById("inlog_form");
  } else if (window.inlog_form) { 
    f = window.inlog_form;
  } 
  if (f) {
    if (f.gebruikersnaam.value == null || f.gebruikersnaam.value == "") { 
      f.gebruikersnaam.focus();
    } else {
      f.wachtwoord.focus();
    } 
  }
}