This is the correct way to make an anchor tag call a javascript function and not scroll the page:

Code
<a href="#" onclick="javascript:MyFunction();return false;"> 


Note that the "return false;" at the end tells the browser not to execute the href="#", so your page will not scroll.


The Captian
Today they call you "crazy". Tomorrow they call you "ahead of your time."
Global Skywatch Learn about Chemtrails - You're breathing them now!
OnlyTheBestHerbs.com World-class supplements
Mercury Talk Why you are sick.
OneUp Domains Domains, Hosting, Email
1-800-358-4278 (U.S. & Canada)