
function nop_searchbox() {
}

function clear_searchbox() {
    try {
        $('searchbox').value = '';
        $('searchbox').onclick = nop_searchbox;
    } catch(e){
        debug(e);
    }
}

function initSearchbox() {
    debug('initSearchbox');
    try {
        if ($('searchbox')) {
            $('searchbox').onclick = clear_searchbox;
        }
    } catch(e){
        debug(e);
    }
}

addLoadEvent(initSearchbox);

