
	str = document.cookie;
	arr = str.split(' ');
	cookiepassword="";
	for (i=0;i<arr.length;i++)
	{
		s = unescape(arr[i]);
		stop1 = s.indexOf("=");
		stop2 = s.indexOf(";");
		if (stop2 < 0)  
		{
			stop2 = s.length;
		}
		name = s.substring(0,stop1);
		value = s.substring(stop1+1,stop2);
		if (name == "rocopassword")
		{
			cookiepassword=value;
		}
	}
	if (cookiepassword != "rocotayo")
	{
		rocopassword = prompt("Enter a password","");
		if (rocopassword == "rocotayo")
		{
			s1="rocopassword=rocotayo" + ";path=/";
			document.cookie=s1;
		}
		else
		{
			alert("Sorry, the password is NOT correct!");
			window.location="index.htm";
		}
	}
