<!--

  // © 2007 Bitpalast GmbH. All rights reserved.


  function printpage() {
    printlocation="http://www.lidmed.com/english/phprint.php?page="+window.location;
    window.open(printlocation,'','width=770,height=600,toolbar=1,menubar=1,scrollbars=1,status=0,resizable=0');
  }



  function mailencrypt(m1) {
    var m2 = "lidmed.de";
    var mailaddress = "mailto:" + m1 + "@" + m2;
    location.href = mailaddress;
  }



  function tellafriend() {
    window.location="http://www.lidmed.com/english/service/weiterempfehlen.html?"+window.location;
  }

  function setreferral() {
    if(document.location.search != "") {
      previouslocation=document.location.search;
      document.sendreferralform.url.value=previouslocation.substring(1,previouslocation.length);
    }
    else document.sendreferralform.url.value='http://www.lidmed.com/';
  }  

  function sendreferral(theForm)
  {
    if (theForm.senderemail.value.length < 7)
    {
      alert("The sender's address must be at least seven characters long.");
      theForm.senderemail.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_.-@";
    var checkStr = theForm.senderemail.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("Please enter letters, digits, or \"_.-@\" characters only as a sender's address.");
      theForm.senderemail.focus();
      return (false);
    }

    if (theForm.recipientemail.value.length < 7)
    {
      alert("The recipient's address must be at least seven characters long.");
      theForm.recipientemail.focus();
      return (false);
    }

    if ((theForm.recipientemail.value.indexOf("sdf") > -1) || (theForm.recipientemail.value.indexOf("jkl") > -1) || (theForm.recipientemail.value.indexOf(".") == -1) || (theForm.recipientemail.value.indexOf("@") == -1)) {
      alert("The recipient's address is invalid.");
      theForm.recipientemail.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-_-.@";
    var checkStr = theForm.recipientemail.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("Please enter letters, digits, or \"_.-@\" characters only as a recipient's address.");
      theForm.recipientemail.focus();
      return (false);
    }
    return (true);
  }



  function contact_validator(theForm)
  {

    if (theForm.name.value == "")
    {
      alert("Please enter your name.");
      theForm.name.focus();
      return (false);
    }

    if (theForm.name.value.length < 3)
    {
      alert("Your name must be at least three characters long.");
      theForm.name.focus();
      return (false);
    }

    if (theForm.phone.value == "")
    {
      alert("Please enter your phone number.");
      theForm.phone.focus();
      return (false);
    }

    if (theForm.phone.value.length < 7)
    {
      alert("Your phone number must be at least seven digits long.");
      theForm.phone.focus();
      return (false);
    }

    if (theForm.email.value == "")
    {
      alert("Please enter your e-mail address.");
      theForm.email.focus();
      return (false);
    }

    if ((theForm.email.value.indexOf("sdf") > -1) || (theForm.email.value.indexOf("jkl") > -1) || (theForm.email.value.indexOf(".") == -1) || (theForm.email.value.indexOf("@") == -1)) {
      alert("Your e-Mail addresse is invalid.");
      theForm.email.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@-_.";
    var checkStr = theForm.email.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("As an e-mail address, please enter letters, digits and \"@-_.\" characters only.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.mitteilung.value == "")
    {
      alert("Please enter your message.");
      theForm.mitteilung.focus();
      return (false);
    }

    if (theForm.mitteilung.value.length < 20)
    {
      alert("Your message must be at least 20 characters long.");
      theForm.mitteilung.focus();
      return (false);
    }


    return (true);
  }

  function passwordrequest_validator(theForm)
  {

    if (theForm.name.value == "")
    {
      alert("Please enter your name.");
      theForm.name.focus();
      return (false);
    }

    if (theForm.name.value.length < 3)
    {
      alert("Your name must be at least three characters long.");
      theForm.name.focus();
      return (false);
    }

    if (theForm.phone.value == "")
    {
      alert("Please enter your phone number.");
      theForm.phone.focus();
      return (false);
    }

    if (theForm.phone.value.length < 7)
    {
      alert("Your phone number must be at least seven digits long.");
      theForm.phone.focus();
      return (false);
    }

    if (theForm.email.value == "")
    {
      alert("Please enter your e-mail address.");
      theForm.email.focus();
      return (false);
    }

    if ((theForm.email.value.indexOf("sdf") > -1) || (theForm.email.value.indexOf("jkl") > -1) || (theForm.email.value.indexOf(".") == -1) || (theForm.email.value.indexOf("@") == -1)) {
      alert("Your e-Mail addresse is invalid.");
      theForm.email.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@-_.";
    var checkStr = theForm.email.value;
    var allValid = true;
    var validGroups = true;
    for (i = 0;  i < checkStr.length;  i++)
    {
      ch = checkStr.charAt(i);
      for (j = 0;  j < checkOK.length;  j++)
        if (ch == checkOK.charAt(j))
          break;
      if (j == checkOK.length)
      {
        allValid = false;
        break;
      }
    }
    if (!allValid)
    {
      alert("As an e-mail address, please enter letters, digits and \"@-_.\" characters only.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.mitteilung.value == "")
    {
      alert("Please enter your address.");
      theForm.mitteilung.focus();
      return (false);
    }

    if (theForm.mitteilung.value.length < 20)
    {
      alert("Your address must be at least 20 characters long.");
      theForm.mitteilung.focus();
      return (false);
    }


    return (true);
  }

//-->