/*
 * ----------------------------------------------------------------
 * Project 	: Plateforme Annuaire Professionnel
 * Entreprise : Multimed Solutions
 * ----------------------------------------------------------------
 * Dernière modification du fichier
 *
 * @author :  Gérald LONLAS
 * @email : g.lonlas@supinfo.com
 * @version du fichier : 1.0
 * ----------------------------------------------------------------
 */
 
 
function visibilite(thingId)
{
var targetElement;
targetElement = document.getElementById(thingId) ;
if (targetElement.style.display == 'none')
{
targetElement.style.display = '' ;
} else {
targetElement.style.display = 'none' ;
}
}


// Vide un element
function ClearElement ( elementid )
{
	var holder = document.getElementById ( elementid );
	if ( holder )
	{
		while( holder.hasChildNodes() )
		{
			holder.removeChild ( holder.lastChild );
		}
	}

}


// Ajoute un click au compteur
function AddClick ( site_id )
{
	AjaxRequest( GlobalURL + '/modules/fiche/AddClick.php' , 'GET' , 'site=' + site_id , function(){} );
}
 