function CheckFormularFeld(s, txt)
{
  var o = document.getElementById(s);
  if (o) {
    if (o.value.length < 4) {
      alert("Bitte das Feld "+txt+" korrekt ausf"+String.fromCharCode(252)+"llen");
      return 1;
    }
  }
  return 0;
}

function CheckKontaktForm()
{
  var fehler=0;

  // Alle Angaben pruefen
  fehler += CheckFormularFeld('name1',    'Name');
  fehler += CheckFormularFeld('plzort',   'PLZ, Ort');
  fehler += CheckFormularFeld('email',    'E-Mail');

  if (fehler > 0) return false;
  return true;
}
