function resetFigli(urlToLoad,idElemento){
	//window.open(urlToLoad);
	//alert(urlToLoad);

	//tree.removeChilds(idElemento,true);
	//tree.add("", idElemento, "Looooading...", "", "", false);
	//tree.reloadNode(idElemento);
	//return;
	//return;
  //var expNode = tree.getNodeById(idElemento);
  //if (expNode.xtra!=false && !expNode.xtra.loaded) 
	//{
    var c=new NlsXMLHttpHandler();
    c.tId=tree.tId;
    c.id=idElemento;
    c.anim=new Animation();
    c.anim.tree=this;
    c.anim.nId=idElemento;
    c.resultReady_Callback=loadTreeNodes_CALLBACK;
    c.init("get", urlToLoad, true);
    c.send(null);
  //}
}


function resetFigliUpdate(updInsert,loadOnGroup){
	//alert('A');
	//alert(updInsert);
	//alert(loadOnGroup);
	if ((updInsert==null)||(updInsert=='undefined')||(typeof(updInsert)=='undefined')) updInsert=null;
	if ((loadOnGroup==null)||(loadOnGroup=='undefined')||(typeof(loadOnGroup)=='undefined')) loadOnGroup=null;

	//alert('B');
	//alert(updInsert);
	//alert(loadOnGroup);


 	var urlToLoad = 'loadAjaxData3.0.php?location=resetFigliUpdate&axajType=livelloCorrente'+((updInsert!=null)?('&axajGroupsToReload='+updInsert):(''))+((loadOnGroup!=null)?('&axajLoadOnGroup='+loadOnGroup):(''))+'&idSelezionato='+document.itemSelected+'&idTabellaSelezionato='+document.tableSelected+'&jsIdSuperiore='+document.selectedIdHtmlElementFather+'&idTabellaDati='+document.tableSelected+'&idGruppoFiltro='+((document.itemIdGroupSelected!=null)?(document.itemIdGroupSelected):(''))+'&idElementoPadre='+((document.itemParentSelected!=null)?(document.itemParentSelected):(''))+'&idTabellaPadre='+((document.tableParentSelected!=null)?(document.tableParentSelected):(''))+'&iniziaDa='+((document.itemPagePosizion!=null)?(document.itemPagePosizion):('1'))+'&'+SID;
	resetFigli(urlToLoad,document.selectedIdHtmlElementFather);

	//alert('C');

}



