Javascript html redirection - Java
Source
http://pastebin.com/EMY6RJK3