in reply to Login to website (uses JS, I think)

As well as the excellent advice above, I find Firefox with the Firebug extension gives me a fast way to work out what's happening on a remote site. That said using the IE or FF Mechanize modules is the correct way to resolve this.

print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."