function GetEl( idl)
{
 na=navigator.appName;
 nv=navigator.appVersion;
// window.alert(na+" "+nv);
//na.substring(0,2)=="Mi"
 var obj=null;
 if (((na.substring(0,2)=="Mi") && (nv.substring(0,1)>3)) ||
     ((na.substring(0,2)=="Ne") && (nv.substring(0,1)>4)) ||
     ((na.substring(0,1)=="O") && (nv.substring(0,1)>5))) {
   obj=document.getElementById(idl);
 }
 return obj;
}

function UpT( idl)
{
  var obj=GetEl(idl);
  if (obj!=null) { obj.style.borderTopStyle="none"; }
}

function DownT( idl)
{
  var obj=GetEl(idl);
  if (obj!=null) { obj.style.borderTopStyle=""; }
}


function bldL(tbl) {  // Select window
 var numL=tbl.id;
 var objn="Hdr"+numL;
 var obj=GetEl(objn);
 if (obj!=null) { obj.style.fontWeight="bold"; }
 objn="In"+numL;
 obj=GetEl(objn);
 if (obj!=null) { obj.style.backgroundColor="#ffffff"; }
}

function nrmL(tbl) { // UnSelect window
 var numL=tbl.id;
 var objn="Hdr"+numL;
 var obj=GetEl(objn);
 if (obj!=null) { obj.style.fontWeight=""; }
 objn="In"+numL;
 obj=GetEl(objn);
 if (obj!=null) { obj.style.backgroundColor=""; }
}



function BoldL(idl) {
  var obj=GetEl(idl);
  if (obj!=null) { 
//    obj.style.fontWeight="bold";
    obj.style.textDecoration="underline";
  }
}

function NormL(idl) {
  var obj=GetEl(idl);
  if (obj!=null) { 
    obj.style.textDecoration="";
//    obj.style.fontWeight="";
  }
}


// buttons

function Press(idl) {
  var obj=GetEl(idl);
  if (obj!=null) { 
    obj.style.borderRightStyle="none";
    obj.style.borderBottomStyle="none";
    obj.style.borderTopStyle="solid";
    obj.style.borderLeftStyle="solid";
  }
}

function Rel(idl) {
  var obj=GetEl(idl);
  if (obj!=null) { 
    obj.style.borderRightStyle="";
    obj.style.borderBottomStyle="";
    obj.style.borderTopStyle="";
    obj.style.borderLeftStyle="";
  }
}
