    /*Parse data to get the id, exampel of data : anchorName_id*/
    function parseId(dataName){
	    var indexOfId = dataName.indexOf('_',0);
      	return dataName.substring(indexOfId +1, dataName.length);
     };
     
     /* Open or close the element (it must be a block) and return the new status:
     opened if the box is opened now
     closed if the box is closed now*/
    function toggleBox(element){
	    if(element.style.display == 'none'){//expand
	   		element.style.display = 'block';
	   		return 'opened';
	   	} else{//collapse
	    	element.innerHTML = '';
	   		element.style.display = 'none';
	   		return 'closed';
	   	}
    }; 
    
     /* Open or close the element (it must be a block) and return the new status:
     opened if the box is opened now
     closed if the box is closed now*/
    function toggleBoxSkipContent(element){
	    if(element.style.display == 'none'){//expand
	   		element.style.display = 'block';
	   		return 'opened';
	   	} else{//collapse
	   		element.style.display = 'none';
	   		return 'closed';
	   	}
    };