I'm using this login script below but when I test it it only allows the second part(red and white) to work but not the first( blue and pink). I mean when I try to login I can't login with the first part, it says invalid id, but with the second part it lets me login. So why does it do that? How can I make it so I can allow more than one login name and pass to work?
script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="Blue") {
if (form.pass.value=="Pink") {
location="http://sonicfighters.cjb.net/"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}


//-->
</script>
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="Red") {
if (form.pass.value=="White") {
location="http://sonicfighters.cjb.net/"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}


//-->

</script>