
// When document has loaded, initialize pagination and form 
$(document).ready(function(){
  
  // Defaultwerte als Beschriftung für Textfelder
  //$("#tx_indexedsearch-sword.indexedsearch").DefaultValue("Suche");
  $("#tx_indexedsearch-sword").DefaultValue("Produktsuche");
  $("#frontendlogin-user").DefaultValue("Benutzername");
  $("#frontendlogin-pass").DefaultValue("Passwort");
  
  // Vor absenden des Warenkorbs pruefen, ob die AGB worden akzeptiert sind
  $("#warenkorb").submit(function() { 
    if (!isCheckedById("#dgform-agb")) { 
      alert ("Bitte akzepieren Sie die Allgemeinen Geschäftsbedingungen"); 
      return false; 
    } else { 
      return true; //submit the form 
    } 
  }); 
  
  function isCheckedById(id) { 
    //var checked = $("input[@id="+id+"]:checked").length; 
    //return checked; 
    return $("input[@id="+id+"]:checked").length; 
  }
   
  function date_de(s) {
    var a = s.split('.');
    a[1] = a[1].replace(/^[0]+/g,"");
    return new Date(a.reverse().join("/")).getTime();
  }
});




if (top.location != self.location) {
top.location = self.location.href
}

