function Kontakt()
{ 
window.open('./contactformular.htm','Contactformular','width=560,height=600,screenX=0,screenY=0,scrollbars=yes')
} 
function FocusCol(obj)
{
  if (document.getElementById || document.all)
  {
    obj.style.color="#4E4E4E";
    obj.style.backgroundColor="#D0D0D0";
    obj.style.fontWeight="bold";
  }
}


function BlurCol(obj)
{
  if (document.getElementById || document.all)
  {
    obj.style.color="#4E4E4E";
    obj.style.backgroundColor="#FFFFFF";
    obj.style.fontWeight="normal";
  }
}

function check(f)
{
  // Zuerst finden wir heraus, ob ein Textfeld leer ist.

  if(f[7].value == '')
  {
    alert('Der Vorname ist ein Pflichtfeld!');
    document.form.Vorname.focus();
    return(false);
  }

  if(f[8].value == '')
  {
    alert('Der Nachname ist ein Pflichtfeld!');
    document.form.Nachname.focus();
    return(false);
  }

  if(f[16].value == '')
  {
    alert('Wir benötigen eine gültige eMail-Adresse!');
    document.form.email.focus();
    return(false);
  }

  // Jetzt wird die E-Mail Adresse nach Leerzeichen durchsucht
  if(f[16].value.search(/ /) != '-1')
  {
    alert('Die E-Mail Adresse darf keine Leerzeichen enthalten!');
    document.form.email.focus();
    return(false);
  }

  // Am Schluss soll noch einmal das Format ueberprueft werden.
  if(f[16].value.search(/@/) == '-1')
  {
    alert('E-Mail Adressen haben das Format "Benutzer@Domain",\n'
     +'z.B.: "peter.mustermann@net.de"');
    document.form.email.focus();
    return(false);
  }

  return(true);
}
