<!--
  // Check if Field contains something
  function ContainsSomething(Field)
   {
   if ((Field.type == "text") || (Field.type == "textarea"))
      {
      if (Field.value == "")
         {
         return false;
         }
      }
   else
      {   
      if (returnSelection(Field) == null)
         {
         return false;
         }
      }

   return true;
   }
   
  // Check for valid (ie containg "@", ".", 
  // and more than 6 characters) email-address in Field
  function ValidEmail(Field)
    {
   if (!ContainsSomething(Field))
      {
      return false;
      }
    if (Field.value.indexOf("@")==-1  
        || Field.value.indexOf(".")==-1 
        || Field.value.indexOf(" ")!=-1 
        || Field.value.length<6)
       {
       return false;
       }
    else
       {
       return true;
       }
    }   

  // Check if Field contains only letters
  function IsOnlyLetters(Field)
   {
   if (!ContainsSomething(Field))
      {
      return false;
      }
   var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZÜÖÄ'´ -"
   for (i=0; i < Field.value.length; i++)
       {
       var CheckChar = Field.value.charAt(i);
       CheckChar = CheckChar.toUpperCase();
       if (Letters.indexOf(CheckChar) == -1)
          {
          return false;
          }
       }
       return true;
    }

  // Check if Field is not equal to strCompare
  function IsNotEqual(Field, strCompare)
    {
    if (Field.value== strCompare)
       {
       return false;
       }
    return true;
    }
//-->
  