/**
 *	Fonction d'ouverture de popup 
 * @param url
 * @param name
 * @param mtop
 * @param mleft
 * @param mwidth
 * @param mheight
 * @return
 */
function PopUpOnce(url, name, t, l, w, h)
{
	if (! t) { t = 200;} if (! l) { l = 200;} if (! w) { w = 300;} if (! h) { h = 250;}

	var params = 'resizable=yes, location=no, ';
	    params += 'top='+t+', left='+l+', width='+w+', height='+h+', ';
	    params += 'menubar=no, status=no, scrollbars=yes';

	newwindow = window.open(url, name, params);
	if (window.focus) { newwindow.focus(); }
	return false;
}

/**
 *	Fonction de conversion de chaîne 
 * @param str : La chaîne d'entrée
 * @return ! La chaîne de caractères en majuscule sans accents
 */
function toUpperCaseASCII(str){

	var reg_a=new RegExp("[àâäÀÂÄ]", "g");
	var reg_e=new RegExp("[éèêëÉÈÊË]", "g");
	var reg_i=new RegExp("[îïÎÏ]", "g");
	var reg_o=new RegExp("[ôöÔÖ]", "g");
	var reg_u=new RegExp("[ûüùÛÜÙ]", "g");
	var reg_c=new RegExp("[çÇ]", "g");

	var str_return = str;
	
	str_return = str_return.replace(reg_a, 'A');
	str_return = str_return.replace(reg_e, 'E');
	str_return = str_return.replace(reg_i, 'I');
	str_return = str_return.replace(reg_o, 'O');
	str_return = str_return.replace(reg_u, 'U');
	str_return = str_return.replace(reg_c, 'C');

	return str_return.toUpperCase();
}