/**
 * generate a random parameter for URL to enforce no-cache pragma that is not 
 * working on IE 7 and not Really working on IE 8 and Firefox 
 * @returns {String}
 */
function rnd() {
	return "zthc="+Math.floor(Math.random()*100000) ;
}



/**
 * Refresh the tree view
 */
function refreshTree(){
	$("#menutree").empty();
    $.ajax({
     url : "tree.html?refresh=true",
     success : function (data) {
        $("#menutree").html(data);
        $("#ttReports").removeClass("closed");
        $("#ttReports").addClass("open");
        $("#ttReportAPG").removeClass("closed");
        $("#ttReportAPG").addClass("open");
        $("#snapsmenu").treeview({
            collapsed: false,
            persist: "location",
            animated: "fast",
            control:"#treecontrol"
         });                
     }
 	});            
	
}
