
function addFirstLevel (universe)
{
    value=window.prompt("Insert the new name here:" , "")
    if(value!=null)document.location.href="consult.php?action=treemanager&addFirstLevel="+escape(value)+"&universe="+escape(universe);
}
	
function addNode (universe, itsFatherId)
{
    value=window.prompt("Insert the new name here:" , "")
    if(value!=null)document.location.href="consult.php?action=treemanager&addNode="+escape(value)+"&itsFatherId="+escape(itsFatherId)+"&universe="+escape(universe);
}
	
function renameNode (universe, id, oldname)
{
     value=window.prompt("Insert the new name here:" , unescape(oldname))
    if(value!=null)document.location.href="consult.php?action=treemanager&newName="+escape(value)+"&idToRename="+escape(id)+"&universe="+escape(universe);
}
	
	
function confirmation(text, url)
{
	if (window.confirm(text))
	{
		window.location.href = url;
	}
} 

