// requires MochiKit 1.2 or up
// specifically for the search & sub buttons on the main template
function clearBox(e) {
    var targ;
    if (!e) var e = window.event;
    if (e.target) targ = e.target;
    else if (e.srcElement) targ = e.srcElement;
    if (targ.nodeType == 3) // defeat Safari bug
        targ = targ.parentNode;
    setNodeAttribute(targ, 'value', '');
    setNodeAttribute(targ, 'onclick', null);    
}
function setupClearBoxes() {
    setNodeAttribute('searchbox', 'onclick', clearBox);
    setNodeAttribute('mailsubbox', 'onclick', clearBox);    
}
addLoadEvent(setupClearBoxes);