function AreaHighlightOn( elt ) {
  elt.style.oldBackgroundColor = elt.style.backgroundColor;
  elt.style.backgroundColor = '#ff80FF';
}


function AreaHighlightOff( elt ) {
  elt.style.backgroundColor = elt.style.oldBackgroundColor;
}

function getObject(obj) {
    var theObj
    if (document.layers) {
        if (typeof obj == "string") {
            return document.layers[obj]
        } else {
            return obj
        }
    }
    if (document.all) {
        if (typeof obj == "string") {
           if(document.all(obj)!=null) return document.all(obj).style ;
           else return null;
        } else {
            return obj.style
        }
    }
    if (document.getElementById) {
        if (typeof obj == "string") {
            return document.getElementById(obj).style
        } else {
            return obj.style
        }
    }
    return null
}

function show(obj) {
    var theObj = getObject(obj);
    theObj.visibility = "visible"
    theObj.display = "block"
}

function hide(obj)
{
    var theObj = getObject(obj)
    theObj.visibility = "hidden";
    theObj.display = "none"
}

function change(id)
{
    if (id==1)
    {
      show("tabl1");
      hide("tabl2");
    }
    else
    {
      show("tabl2");
      hide("tabl1");
    }
}

function cbox() {
var p=document.getElementsByName('u[]');
var u=p[0].checked^1;
for (var i=0; i<p.length; i++) p[i].checked=u;
return false;
}
















