<div id="mybox" onClick='location.href="http://www.google.com"'>
Just put that in a table cell instead of a div. Also, you should definitely write a function for it in Javascript then call it throughout your code. That way if you decide to change the url you only need to change it in one place instead of many more.