/*******************************************************************************
 *******************************************************************************   
 *	+ MAIN INFO   
 *
 *	@filename		: utils.js
 *	@description	: librairie de fonctions  utilitaires générales
 *	@authors		: Sebastien Tremblay  <seb.creative@gmail.com>
 *	@date			: 2/11/2010
 *
 ******************************************************************************/  

/**
 * jumpToAnchor -- Fonction qui permet de naviguer avec les "anchors" via JS.
 * @param {string} targetAnchor 	-> Anchor à atteindre
 */
function jumpToAnchor(targetAnchor) {
   window.location = String(window.location).replace(/\#.*$/, "") + "#" +targetAnchor;
}

/**
* nl2br -> semblable à php's nl2br
* 
*/
function nl2br(str) { return str.replace(/\n/g, '<br />'); }
