Add to encryption page:
document.location = "myurl.com/viewable.html?pw=" + password;
Add to viewable page:
str = document.location;
str = str.split("?")[1];
str = str.split("=")[1'];
if(str = password)
{
go in
}
btw, javascript is not very safe. Use php wherever possible.