/* —————————————————————————————————————————————————————————————————————————————— *
 *  tools.js 
 * —————————————————————————————————————————————————————————————————————————————— */

  function AddToFavorites(url,title) 
  { 
    if (window.sidebar) // Mozilla Firefox Bookmark		
    { 
      window.sidebar.addPanel(title, url,"");	
    } 
    else if(window.external)  // IE Favorite		
    { 
      window.external.AddFavorite( url, title); 
    }	
    else if(window.opera && window.print) // Opera Hotlist		
    { 
      return true; 
    } 
  }


  function checkForm() 
  {
    if ((document.kontform.name.value == ""))
    {
      alert("Bitte geben Sie Ihren Namen ein.");
      return false;
    }
    document.kontform.submit();
    return true;
  }

  
  function statusText(text)
  {
   name1=text;
   setTimeout("window.status=name1;",0.1);
   return true;
  }
  
/*- Alle Felder ausgefüllt? ----------------------------------------------------------- */
function checkLoginandPW()
{
  if (document.loginform.vorname.value != "" && document.loginform.nachname.value != "" &&
      document.loginform.strasse.value != "" && document.loginform.plz.value != "" &&
      document.loginform.ort.value != "" && document.loginform.tel.value != "" && document.loginform.email.value != "" )
  {
    if (document.loginform.pw.value != "" || document.loginform.pw2.value == " ")
    {
      if (document.loginform.pw.value != document.loginform.pw2.value)
      {
        alert("Das Passwort und die Passwortbestätigung stimmen nicht überein");
        document.loginform.pw.focus();
        return false;
      }
      else
      {
        if (document.loginform.pw.value.length < 6)
        {
          alert("Das Passwort muss aus mindestens 6 Zeichen bestehen!");
          document.loginform.pw.focus();
          return false;
        }
        else
        {
          document.loginform.submit();
        }
      }
    }
    else
    {
      var startTag = new Date();
      var DatumString = String.fromCharCode((startTag.getYear() - 2000 + 65),(startTag.getMonth() + 65),(startTag.getDay() + 65));
      var jetztstd = (startTag.getHours() + 60);
      var jetztmin = (startTag.getMinutes() + 60);
      var jetztsec = (startTag.getSeconds() + 60);
      var jetzt = DatumString+""+jetztstd +""+jetztmin+""+jetztsec;
      document.loginform.pw.value = jetzt;
      document.loginform.pw2.value = jetzt;        
      document.loginform.submit();
/*
      alert("Geben Sie ein Passwort und die Passwortbestätigung ein!");
      document.loginform.pw.focus();
      return false;
*/      
    }
  }
  else
  {
    alert("Überprüfen Sie ihre Eingaben! Alle mit * gekennzeichneten Felder müssen ausgefüllt werden!");
    document.loginform.vorname.focus(); 
    return false;
  }
}

/*- Abfrage AGB einverstanden - Select Payment Method ----------------------------------------------------------- */
function checkagb(sprache)
{
  if ((document.pform.agb.checked == false))
   {  
     if (sprache == "de")
       alert("Um die Bestellung auszuführen, ist es notwendig,\ndass Sie unsere Allgemeine Geschäftsbedingungen anerkennen.");
     if (sprache == "en")
       alert("To go further with your order, it is necessary to agree with our terms of condition.");
     if (sprache == "sp")
       alert("To go further with your order, it is necessary to agree with our terms of condition.");
      
     document.pform.agb.focus();
   }
   else
   {
    document.pform.submit();
   }
}  
  
/* ------------------------------------------------------------------------------ *
 * (C) multi-INTER-media GmbH
 *     Letzte Aenderung : 13.06.2006
 * ------------------------------------------------------------------------------ */


