function validate(theForm)
{	
  if(theForm.name=='tagForm')
  {
  if((theForm.tfTagString.value == "geen")||(theForm.tfTagString.value == "")){
	alert("Je moet ten minste 1 zoekterm koppelen");
	theForm.tfTagString.focus();
	return (false);}
   }
  if(theForm.name=='titleForm')
  {
    if (theForm.photoTitle.value == ""){
      alert("U moet een titel voor deze foto invullen");
      theForm.photoTitle.focus();
      return (false);};
  }
}