// JavaScript Document
function _show(hidId) {
    el = document.getElementById( hidId + '-help' );
    el.style.display = 'block';
}
function _hide(hidId) {
    el = document.getElementById( hidId + '-help' );
    el.style.display = 'none';
}

function _addListener(elm,eventType,fn,set) {
    if(document.addEventListener){
        if(window.opera&&(elm==window)){
            elm=document
        }
        elm.addEventListener(eventType,fn,set)
    }
    else if(document.attachEvent){
        elm.attachEvent('on'+eventType,fn)
    }
}

function addListeners( id ) {
    _addListener( document.getElementById(id), 'focus', function() { _show(id); } , false );
    _addListener( document.getElementById(id), 'blur', function() { _hide(id); }, false );
}
