function logout() { document.getElementById('loader').style.display='block'; var cookies = document.cookie.split(";"); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i]; var eqPos = cookie; var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; } setTimeout("location.href='http://www.nord-soft.de'",2500); } function form_cahng_firma(changer) { if(changer=='1') { document.getElementById('Benutzer').style.display="none"; elem=document.getElementsByClassName('firma'); elem_lang=elem.length-1; for(i=0; i<=elem_lang; i++) { elem[i].style.display='block'; } }else if(changer=='0') { document.getElementById('Benutzer').style.display="block"; elem=document.getElementsByClassName('firma'); elem_lang=elem.length-1; for(i=0; i<=elem_lang; i++) { elem[i].style.display='none'; } } } function login() { user=document.getElementById('username').value; pss=document.getElementById('password').value; $.get('login.php',{user:user, pass:pss, w2:'', w3:'', w4:'', w5:''}, function(data){ base=new Array(); base=data.split(':::'); if(base[0]==='false') { document.getElementById('message').innerHTML=base[1]; $('#message').slideToggle('fast'); document.getElementById('loader').style.display='none'; } if(base[0]==='true') { document.getElementById('message').style.display='none' document.getElementById('loader').style.display='block'; document.getElementById('message').innerHTML=''; if(base[3]=='0') { setTimeout("location.href='http://www.nord-soft.de/'+base[1]+'&first=1';",2500); document.cookie='WHHO'+ "=" +base[2]; }else if(base[3]=='1') { $.post('http://www.nord-soft.de/admin/index.php',{User:user, PW:pss, Sprache:'DE', op:'checkadmin', w4:'', w5:''}, function(data){ setTimeout("location.href='http://www.nord-soft.de/'+base[1];",2500); }); } } }); } function abbrechen() { $('#login').slideToggle('slow'); $(document).ready(function(){document.getElementById('backer').style.display="none";}); }