Saw this thing of beauty in the javascript on a website I have to maintain, it shouldn't need any explanation
function submitentry()
{
password = document.password1.password2.value.toLowerCase()
username = document.password1.username2.value.toLowerCase()
passcode = 1
usercode = 1
for(i = 0; i < password.length; i++)
{
passcode *= password.charCodeAt(i);
}
for(x = 0; x < username.length; x++)
{
usercode *= username.charCodeAt(x);
}
if(usercode==17094266689500000 && passcode==5.69355164929536e+25)
{
window.location=password+".html"
}
else
{
alert("You used the wrong credentials.")
}
}