 
 			initTree();
 
+
+			myTree.attachEvent("onCheck", function(id){
+			    alert('this should edit ' + id);
+			    // uncheck everything
+			    var ids=myTree.getAllSubItems(0).split(",");
+	    		for (var i=0; i<ids.length; i++){
+	       			myTree.setCheck(ids[i],0);
+	    		}
+			});
+
+
 			myTree.attachEvent("onDblClick", function(id){
 				$("#statusDiv").html('working...');
 			    $.getJSON("/component/test.cfc",

					}
				}
			);

		}



							$("#statusDiv").html('successful save');
						}else{
							alert(r);
							$("#statusDiv").html(r);
						}
					}
				);
			});







