from_a=0;
var from_a_id=0;
function tm(id,lev,from){
/*
 if (from==1) {
    alert( 'From a'+id); 
 }
 if (from==0) {
    alert( 'From d'+ id); 
 }
*/
 //if (typeof document.all == "undefined") return true;
// var theDivS = document.all.item("DS" + id);
// var theDivA = document.all.item("DA" + id);
 var theDivS = document.getElementById("DS" + id);
 var theDivA = document.getElementById("DA" + id);
 if (!theDivS ) return true;
 if ((from==0) && (from_a==1)) {from_a=0; return false;}
 if (theDivS.style.display == 'none') {
    theDivA.className = 'aa'+lev;
    theDivS.style.display = '';
 } else {
    if ((from==0)  ) {
      theDivA.className = 'na'+lev;
      theDivS.style.display = 'none';
    }
 }
 if (from==1) {
    from_a_id=id; from_a=1;
 }
 if (from==0) {
    from_a=0;
 }
 return false;
}

function mm(id){
 //if (!document.all) return true;
 var theDivS = document.getElementById("DS" + id);
 var theDivA = document.getElementById("DA" + id);
 if (!theDivS | theDivA) return true;
 if (theDivS.style.display == 'none') {
    theDivS.style.display = '';
    theDivA.className = 'shedact';
 } else {
    theDivS.style.display = 'none';
    theDivA.className = 'shed';
 }
 return false;
}
