function passw()
	{
	var Passed = 0
	var Name = new Array()
	Name[0] = "employee1"	// username 1 
	Name[1] = "employee2"	// username 2
	var Pas = new Array()
	Pas[0] = "pass1"		// password 1 (for username 1)
	Pas[1] = "pass2" 		// password 2 (for username 2)
	var Usern = document.pass.usernam.value
	var Passs = document.pass.passwo.value
	for (var i = 0; i < 2; i++)   // the value after i < should be exactly the number of users
		{
		if (Usern == Name[i] && Passs == Pas[i])
			{
			if (i == 0)
				{
				window.open("http://www.yahoo.com") // opens a new window with username 1's page
				}
			if (i == 1)
				{
				window.open("http://www.hotmail.com") // opens a new window with username 2's page
				}
			Passed = 1
			break
			}
		else
			{
			Passed = 0
			}
		}
	if (Passed == 0)
		{
		alert("Username/password combination is incorrect.")
		}
	}
