function showElement(obj)
{
	obj.style.visibility = 'visible';
}

function hideElement(obj)
{
	obj.style.visibility = 'hidden';
}

function showElementById(id)
{
	var element = document.getElementById(id);
	showElement(element);
}

function hideElementById(id)
{
	var element = document.getElementById(id);
	hideElement(element);
}

function selectCurrent(evt)
{
    evt = (evt) ? evt : ((window.event) ? event : null);
    if (evt) {
       var elem = (evt.target) ? evt.target : 
          ((evt.srcElement) ? evt.srcElement : null);
       if (elem ) {
		  elem.style.borderTopColor = '#66A8FD';
       }
    }
}

function deselectCurrent(evt)
{
    evt = (evt) ? evt : ((window.event) ? event : null);
    if (evt) {
       var elem = (evt.target) ? evt.target : 
          ((evt.srcElement) ? evt.srcElement : null);
       if (elem ) {
		  elem.style.borderTopColor = '#777777';
       }
    }
}

function highLight(obj, color)
{
	obj.style.backgroundColor = color;
}
