Code:
<script type="text/javascript">
function goto_URL(URL) {
location.href=URL
}
</script>
<td onmousedown="goto_URL('pag2.html')">

I haven't tested that but I'm pretty sure it is XHTML compliant.