I just spent a long time figuring out that I shouldn\'t use clear() as the name of a function in Javascript:
Not according to the MDN.
Edit:
You got me curious, so I threw together this little jsfiddle.
function clear() { alert("you cleared just fine"); } $('clear').addEvent('click', clear);
Having a function named clear seems to work just fine.
clear