function pass_protection(){
var pass_protect = 0
passwords = new Array()
passwords[0] = "hcS34aK"
passwords[1] = "m8L47sC"
passwords[2] = "V3trB88"
passwords[3] = "9sqX62r"
passwords[4] = "a35bMwp"
passwords[5] = "ryUf76e"
passwords[6] = "Jh2Dzn4"
passwords[7] = "pkAD5gC"
passwords[8] = "e5814Tb"
passwords[9] = "tjacko"
passwords[10] = "eller"
passwords[11] = "mansan"
passwords[12] = "ptk030"
passwords[13] = "rallybil"
passwords[14] = "9988"
passwords[15] = "hd70788"
passwords[16] = "kosmos"
passwords[17] = "teejii"
passwords[18] = "opel"
passwords[19] = "rasmus"
passwords[20] = "seat"
passwords[21] = "697280"


/*
Edit the above passwords or enter more by adding on a new line, passwords[1 number higher than the last] = "Your password" 
Then the number after the 'while (i <' must be changed to 1 higher than the highest number in passwords[]
N.B. all passwords are ase sensitive i.e. if the password is pAsSwOrD and you enter PaSsWoRd you will be prompted with
the Incorrect Pass alert.
*/
var Pw = document.pass.protect.value
if (Pw=="null")
{pass_protect=0}
else
{
i = 0
while (i < 22)
{
switch(Pw){
case passwords[i] : 
alert("Rätt Lösenord. Välkommen!")
window.location="medlem.htm" ;
//Change the html file above
pass_protect = 1
//Change the html file above
break ;
}
i = i + 1
}
}
if (pass_protect==0)
{
alert("Fel Lösenord. Försök igen!")
window.location="klubbsidan.htm"} 
//Change the html file above
}
