﻿function TeacherNodeClicked(node) 
{ 
    //if not doing load on demand then just call toggle if the node.Nodes.length > 0
    //otherwise need to set the hasChildren property when creating nodes
//    if(node.Attributes.hasChildren=='1') 
//    { 
        if(node.Nodes.length==0) 
            return true; //node.Expand(); 
        else 
            node.Toggle() 
        return false; 
//    } 
//    else 
//    { 
//        return true;
//    } 
} 
