I have this code and i need to set it it up so that it reads the source code which will be username and passwords could somebody make me and example of the .js file i would need to make so that i can just edit it with the username and passwords i need please





<html>
<head>

<script language="javascript" src="Pass.js"> // called by the current page
</script>
<script language="javascript">
<!--
function go()
{
var user = document.form.user.value;
var pass = document.form.pass.value;
if ( user == "" && pass == "" )
{
alert("Invalid Username or Password!"); // Put your own message here
}
else
{
isfound=false;
okpass=""
for (i = 0; i < look.length; i++)
{
if (user==look[i][0])
{
okpass=look[i][1];
isfound=true;
break;
}
}
if (okpass=="")
{
alert("Invalid Username or Password!"); // Put your own message here
}
else
{
if (!isfound)
{
alert("Invalid Username or Password!"); // Put your own message here
}
else
{
if (okpass != pass)
{
alert("Invalid Username or Password!"); // Put your own message here
}
else
{
location = user.toLowerCase() + "/" + pass.toLowerCase() + ".html"; //YOU MUST HAVE A FOLDER THAT CONFORMS TO THE USERNAME ENTRY!!
}
}
}
}
}
//-->
</script>
</head>
<body bgcolor="#000000">


<form name="form">
<font face="verdana">
<table border="0">
<tr>
<td>
<font face=verdana color="#FF0000">Username:</font>
</td>
<td>
<input type="text" name="user" size="15">
</td>
</tr>
<tr>
<td>
<font face=verdana color="#FF0000">Password:</font>
</td>
<td>
<input type="password" name="pass" size="15">
</td>
</tr>
<tr>
<td>
</td>
<td align="center">
<input type="button" value="Login" name="login" onclick="go()">
<input TYPE="reset" VALUE="Reset" >
</td>
</tr>
</table>
</font>
</form>

</body>
</html>