$.fn.refresh = function()
{
	return $(this).html('<img src="data/Images/icones/green_rot.gif" alt="chargement" />');
}


$.fn.EvalScript = function()
{
	eval($(this).find("script").html());
	
	return this;
}

$.fn.GetModule = function(strUrl)
{
	if($(this).children('.mod_url').length != 0)
	{
		if(strUrl === undefined)
			strUrl = $(this).children('.mod_url').html();
			
		$(this).children('.mod_cont').load(strUrl)
	}
	else
	{
		alert('Appel à un module non définit');
	}
}

$.fn.GetModuleForm = function(form)
{
	if($(this).children('.mod_url').length != 0)
	{
		//Utilisation de module jquery form pour ajaxiser le formulaire, utilisation de son champ action pour savoir ou l'envoyer.
		// Récupération du résultat et insertion dans mod_cont
		$(form).ajaxSubmit({
			target: $(this).children('.mod_cont')
		});
	}
	else
	{
		alert('Appel à un module non définit');
	}
}
