
function itFOKUS() {
  var aX , bX ;
  bX= document.getElementById("FOKUS");
  if (bX)
   {if  (bX.value!="")
     { aX= document.getElementById(bX.value);
       if (aX ) { aX.focus()}

     }
   }
}





function sh(itid)
		{
		  //itemid=eval("'l' + itid");
		  if (document.getElementById(itid).style.display == "none")
			document.getElementById(itid).style.display = "";

		  else
		  document.getElementById(itid).style.display = "none";

		}




function MTVSH(tree, obj, nodeid) {
    if (nodeid.children[0].style.display == 'none') {
        // Expand the node
        
        // Change main image to Minus icon
        obj.children[0].src = tree.expandedNodeImageUrl;
        // Set image URL
        if (obj.parentNode.children.length > 1)
            obj.parentNode.children[1].src = obj.expandedImageUrl;

        // Show children
        for (i = 0; i < nodeid.children.length; i++) {
            nodeid.children[i].style.display = '';
        }
    }
    else {
        // Collapse the node

        // Change main image to Plus icon
        obj.children[0].src = tree.collapsedNodeImageUrl;

        // Set image URL
        if (obj.parentNode.children.length > 1)
            obj.parentNode.children[1].src = obj.imageUrl;

        // Hide children
        for (i = 0; i < nodeid.children.length; i++) {
            nodeid.children[i].style.display = 'none';
        }
    }

	 
}



function  MTVSH1(tree, obj, nodeid) {
}


function mi(f){
  f.style.color="#00FFFF";
}
function mo(f){
               f.style.color="BLACK" ;
              
			   }
function go(f){
               document.all.Button2.value='MENU#'+f;
               document.all.MenyTag.value='MENU#'+f;
               document.all.Button2.click();
			   }



/*
Styles:

TV.NodeStyle
TV.DisabledNodeStyle
TN.NodeStyle

TV.HoverNodeStyle
TV.SelectedNodeStyle
*/

// NOTE: This function is for testing purposes only and will be deleted eventually
function ShowExpandedState() {
    alert('Expanded state 7: ' + document.ctrl2.TreeView1_expandedstate.value);
}
