
function showHide(elementID) {
el = document.getElementById(elementID);
el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
}

function goTo(opt) {
document.fMAIN.OPT.value = opt;
document.fMAIN.submit();
}

function toFront(img, t, l, h, w)
{
var lref;
if(document.getElementById && (lref=document.getElementById(img))) {
   lref.style.zIndex=lref.style.zIndex * 10;
   if (t >= 0) lref.style.top=t;
   if (l >= 0) lref.style.left=l;
   if (h >= 0) lref.style.height=h;
   if (w >= 0) lref.style.width=w;
   }
}


function toBack(img,t, l, h, w)
{
var lref;
if(document.getElementById && (lref=document.getElementById(img))) {
   lref.style.zIndex=lref.style.zIndex / 10;
   if (t >= 0) lref.style.top=t;
   if (l >= 0) lref.style.left=l;
   if (h >= 0) lref.style.height=h;
   if (w >= 0) lref.style.width=w;
   }
}

function outState(img) {
var lref;
if(document.getElementById && (lref=document.getElementById(img))) {
   lref.src = 'images/' + img + '.bmp';
   }
}

function overState(img) {
var lref;
if(document.getElementById && (lref=document.getElementById(img))) {
   lref.src = 'images/o' + img + '.bmp';
   }
}

