I had a javascript in my header so a user could double click to return to the top of the page. Now, with Web Designer 10 it is not working. When I preview the page it will work, but once I publish it to the Web it will not work. Any suggestions would be much appreciated. I would like to have my viewers simply double click on the website and it goes to the top of the page. Here is the script:

<script language="JavaScript1.2">
<!--

function dblclick() {
window.scrollTo(0,0)
}
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;
//-->
</script>