function passwort()
{
user=document.frage.user.value;
pw=document.frage.pw.value;
user=user.toUpperCase();
if (user=="TOBIAS")
{passworttest(pw, user);}
else if (user=="HENSEN")
{passworttest(pw, user);}
else if (user=="HOPPE")
{passworttest(pw, user);}
else {alert (user+", Sie haben keinen Zugang")};
}
function passworttest(pw, user)
{
pw1=pw.charCodeAt(0);
pw2=pw.charCodeAt(1);
pw3=pw.charCodeAt(2);
pw4=pw.charCodeAt(3);
pw5=pw.charCodeAt(4);
pw6=pw.charCodeAt(5);
B1=pw1%5;
B2=pw2%5;
B3=pw3%5;
B4=pw4%5;
B5=pw5%5;
B6=pw6%5;
var mott=(B1)+(B2)+(B3)+(B4)+(B5)+(B6);
alert(mott);
if (mott==7)
{location.href=user+pw+".html"};
else if (mott==15)
{location.href=user+pw+".html";}
else if (mott==13)
{location.href=user+pw+".html";}
else {alert (user+", Sie haben keinen Zugang")};
}