function warenkorbOpen(lang)
{
         if (newWindow==null || newWindow.closed==true)
         newWindow=window.open("shop_warenkorb_"+lang+".php","mywindow","width=870, height=470, resizable, scrollbars, menubar=yes, left=0, top=0");
         newWindow.focus();
}

function Anmelden()
{
         
         if (window.SeiteMerken!=null)
            SeiteMerken();
         window.document.sort.login.value="Anmelden";
         var p = window.document.sort.pass.value;
         if(p != ""){
                  p = MD5(p);
                  window.document.sort.pass.value = p;
                  window.document.sort.submit();
         }
}

        //Anmeldung mit "Enter" Igor
function KeyPress(Ereignis)
{
         if (!Ereignis)
              Ereignis = window.event;
         if (navigator.appName == "Microsoft Internet Explorer") {
             if (Ereignis.keyCode == 13) {
                 if (window.document.sort.anmelden!=null)
                    window.document.sort.anmelden.click();
             }
             if (Ereignis.keyCode == 27) {
               // window.close(); //ESC
             }
         }
         else {                //Netscape
             if (Ereignis.which == 13) {
                if (window.document.sort.anmelden!=null)
                    window.document.sort.anmelden.click();
             }
             if (Ereignis.which == 0) {
                //window.close(); //ESC
             }
         }
}

function userLeeren(){
                window.document.sort.username.value = "";
}

function passLeeren(){
                window.document.sort.pass.value = "";
}
