var z;
var clicked = false;
window.onload = function(){
	
	if(undefined != document.getElementById("zoeken"))
	{
		z = document.getElementById("zoeken");
		z.onfocus = function(){checkZoek(1)};
		z.onblur = function(){checkZoek(0)};
	}
	if(undefined != document.getElementById("email"))
	{
		e = document.getElementById("email");
		e.onfocus = function(){checkEmail(1)};
		e.onblur = function(){checkEmail(0)};
	}
}
function checkZoek(what){
  if (clicked)
  { 
    return ;
  }
  if(what &&  z.value == "Zoek")
  {
    z.value = "";
    return;
  }
  if (!what && z.value == "")
  {
    z.value = "Zoek";
  }
}

function checkEmail(what){
  if(what &&  e.value == "Email") {
    e.value = "";
    return;
  }
  if (!what && e.value == ""){
    e.value = "Email";
  }
}
