function displayLastModifiedDate() {
  document.writeln("05-12-2009");
  }


function validate(form) {
  if (form.address.value == "") {
    alert("Geben Sie bitte Ihre E-Mail Adresse ein.");
    form.address.focus();
    return false;
    }
    
  if (form.address.value.indexOf('@') == -1) {
    alert("Geben Sie bitte eine gültige E-Mail Adresse ein.");
    form.address.focus();
    return false;
    }
    
  if ((form.address.value.indexOf('.', form.address.value.indexOf('@'))) < (form.address.value.indexOf('@') + 2)) {
    alert("Geben Sie bitte eine gültige E-Mail Adresse ein.");
    form.address.focus();
    return false;
    }
    
  if ((form.message.value == "Text verfassen ...") || (form.message.value == "")){
    alert("Geben Sie bitte Ihre Nachricht ein.");
    form.message.focus();
    return false;
    }
  return true;
  }

function checkField(field, content) {
  if (field.value == "") {
    field.value = content;
  }
  else if (field.value == content) {
    field.value = "";  
  }
}

function sendmail(string) {
  window.location = "mailto:" + uncrypt(string);
  }

function uncrypt(string) {
  var charcode = 0;
  var output   = "";
  var counter  = 0;
  for(var i = 0; i < string.length; i++) {
    charcode = string.charCodeAt(i);
    output += String.fromCharCode(charcode+counter);
    counter++;
  }
  return output;
}

