function preventDefault(e) { if (window.event) e.returnValue = false; else if (e.preventDefault) e.preventDefault(); };