		var UserNam;
		var PassWrd;
		var UserArray = allusers.split(";")
		var PassArray = allpass.split(";")
		var AllowIn=false;
		var UserSysWin=false;

		function letMeIn(userID,thepass)
		{
			var MatchedNum = -1;
			var i=0;
			while(MatchedNum<0 && i<UserArray.length)
				{
				if(UserArray[i]==userID)
					{
					MatchedNum=i;
					shouldbepass = PassArray[i];
					if(shouldbepass==thepass)
						{
						AllowIn=true;
						}
						else
						{
						AllowIn=false;
						}			
					}
				else
					{
					MatchedNum=-1;
					AllowIn = false;
					}
				i++
				}
			
			var tWidth=screen.availWidth;
			var tHeight=screen.availHeight;

			if(AllowIn==true)
				{
				if(bWinXP>=1 && bMSIE6>=1)
					{	
					PageOne = window.open("PageOne.html","_blank","height=480,width=640,status=1,menubar=1,scrollbars=1,resizable=1,top=20,left=20");
					PageOne.resizeTo(tWidth/1.3,tHeight/1.2);
					window.opener = window;
					window.close();
					}
				else
				{
					UserSysWin = window.open("UserSysInfo.html","UserData","height=500,width=500,status=no,menubar=no,scrollbars=yes,resizable=yes,top=50,left=50");
					UserSysWin.resizeTo(tWidth/1.7,tHeight/1.5);
					PageOne = window.open("PageOne.html","FirstPage","height=480,width=640,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=20,left=20");
					PageOne.resizeTo(tWidth/1.3,tHeight/1.2);
					WaitBefore = setTimeout("doTest()",200);
					}
				}
			else
				{
				UserNam.value="try again";
				PassWrd.value="";
				alert("your username password are wrong, please try again")
				}
		}

		function doTest()
		{
		if(UserSysWin.document.body)
			{
			if(UserSysWin.document.body.innerHTML!="")
				{
				clearTimeout(WaitBefore);
				UserSysWin.focus();
				window.opener = window;
				window.close();
				}
			}
		else
			{
			return false;
			}
		}

		
	function popUserWinIf()
	{
	if(bWinXP>=1 && bMSIE6>=1)
		{
		return false;
		}
	else
		{
		addWinsPop();
		}	
	}

