// xPreventDefault r1, Copyright 2004-2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xPreventDefault(e)
{
if (e && e.preventDefault) e.preventDefault();
else if (window.event) window.event.returnValue = false;
}