function pwcheck() {
var passwort, i=0;
while(passwort !="dolmx" && i<3) {
passwort=prompt("Bitte geben Sie das Passwort ein! (3 Versuche)","");
i++;
}
if (passwort=="dolmx") {
location.href="spinchat.html";
}
else {
alert("Das Passwort ist nicht korrekt! Weiterleitung auf Homepage");
location.href="index.html";
}
}