function LogIn(username, password)

		 {

		 	var valid = 2;

		 	if (username=="0" && password=="0") {valid = 0;}

			else

			{

		 

		 	 		 

		 		  var clients = 5;

		 

		 

		 		  var accounts = new Array(2)

		 			 	   accounts[0] = new Array(clients); //names

					  	   accounts[1] = new Array(clients); //passwords

					

				accounts[0][0] = "jascopacific";

				accounts[1][0] = "jasco";

				

				accounts[0][1] = "jimsadler";

				accounts[1][1] = "rubydog";

				

				accounts[0][2] = "cfinn";

				accounts[1][2] = "caleb";

				

				accounts[0][3] = "karen";

				accounts[1][3] = "jasco";

				

				accounts[0][4] = "kloostra";

				accounts[1][4] = "harlan";

			
				accounts[0][5] = "guest";
				accounts[1][5] = "";
			   

				  for (j=0; j<accounts[0].length; j++)

  	  	  		  {

				   print 

	   	    	   if (accounts[0][j]==username)

				   {

			   	   	if (accounts[1][j]==password)

		   	   		{ 

	 		     	  valid=1;

					  break;

	  	   	   		}

				   }

     	  		  }

			 }

			 		  

		 	 return(valid);

			    

		  }

		  

		  

function GetName(str)

{

		//  document.writeln("<br> I get into dilineate1()");

		 

		 var theleft = str.indexOf("=") + 1;

		 var theright = str.lastIndexOf("&");

		 return(str.substring(theleft, theright));

}

		 		  

function GetPass(str)

{

		  //document.writeln("<br> I get into dilineate2()");

		 

		 var point = str.lastIndexOf("=");

		 return(str.substring(point+1,str.length));

}		  


