function changeTD(ref, MYcolor)
{
var tds = ref.childNodes;
for(i=0; i<tds.length; i++)
{
tds[i].style.backgroundColor=MYcolor;
}
}

function moreinfo(ref)
{
var e = document.getElementById(ref);
var visi = (e.style.display == 'none') ? '' : 'none';
e.style.display = visi;
}

function showhide(id)
{
if(document.getElementById(id))
{
var e = document.getElementById(id);
var visi = (e.style.display == 'block') ? 'none' : 'block';
e.style.display = visi;
}
}


function confirmLink(theLink, theSqlQuery)
{
 // Confirmation is not required in the configuration file
 // or browser is Opera (crappy js implementation)
 if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
 return true;
 }

 var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
 if (is_confirmed) {
 if ( typeof(theLink.href) != 'undefined' ) {
 theLink.href += '&is_js_confirmed=1';
 } else if ( typeof(theLink.form) != 'undefined' ) {
 theLink.form.action += '?is_js_confirmed=1';
 }
 }

 return is_confirmed;
} // end of the 'confirmLink()' function