function getRefToDiv(divID) {
    if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    return false;
}


function showDiv(divID_as_a_string,thisEvent) {
    var myReference = getRefToDiv(divID_as_a_string);
    var YPos;
    var newYPos;

    if (thisEvent.pageY)
    {
        newYPos = thisEvent.pageY - 280;
    }
    else if (thisEvent.clientY)
    {
        newYPos = thisEvent.clientY + document.body.scrollTop - 280;
    }
    else
    {
        newYPos = 600;
    }



    if( !myReference )
    { //window.alert('Nothing works in this browser');
        return;
    }
    if( myReference.style )
    {
        myReference.style.top= '25px'; //newYPos;
        myReference.style.height='185px';
        myReference.style.width='550px';
        myReference.style.visibility = 'visible';
        myReference.style.overflow = 'auto';
    } else {
        if( myReference.visibility ) {
            myReference.visibility = 'show';
        } else {
            //window.alert('1Nothing works in this browser');
            return;
        }
    }
}

function hideDiv(divID_as_a_string) {
    var myReference = getRefToDiv(divID_as_a_string);
    if( !myReference ) {
        //window.alert('Nothing works in this browser');
        return;
    }
    if( myReference.style ) {
        myReference.style.visibility = 'hidden';
        myReference.style.overflow='hidden';
    } else {
        if( myReference.visibility ) {
            myReference.visibility = 'hide';
        } else {
            //window.alert('2Nothing works in this browser');
            return;
        }
    }
}

