<!--

	

	



	var currentQuoi="";  

	var currentWhere="";

	var TOPOFFSET=0;

   	var LEFTOFFSET=0;

	var DISPLAYMETHOD='';

	var DISPLAYMETHOD_CO='';

	

	

	if (document.all){ // IE		

		 DISPLAYMETHOD='block';

		 DISPLAYMETHOD_CO='block';

		}

 	else {             //Others like Firefox         	

		 DISPLAYMETHOD='table-row';

		 DISPLAYMETHOD_CO='table-row-group';

	}

	

	

	// This function makes it possible to obtain the position of an element 

	// it reassembles the tree of the DOM until the body 

	function getOffsetPosition(inID, inTYPE){

		var iVal = 0;

		var oObj = document.getElementById(inID);

		var sType = "oObj.offset" + inTYPE;

		while (oObj && oObj.tagName != "BODY") {

			iVal += eval(sType);

			oObj = oObj.offsetParent;

		}

		return iVal;

	}

function blurm(quoi)
	
	{
		quoi=document.getElementById(quoi);
		quoi.style.display="none";
	}


	function show(quoi,where){



		if(currentQuoi != ""){

			currentQuoi.style.display="none";

		}

		// position since the top of the document 

		a = getOffsetPosition(where,"Top");

		// position since the left of the document 

		b = getOffsetPosition(where,"Left");

		

		where=document.getElementById(where);

		quoi=document.getElementById(quoi);



		

		quoi.style.left=(b+LEFTOFFSET)+"px";

		quoi.style.display="inline";

		quoi.style.position="absolute";



		// position of the end of the form 

		posFinForm = getOffsetPosition("finFormulaire","Top");

		diff = 0 + (a+quoi.scrollHeight) - posFinForm;

		if (diff > 0){

			a=a-diff;

		}

		

		quoi.style.top=a+"px";

		quoi.style.zIndex="1";



		currentQuoi=quoi;

		currentWhere=where;

	}

	

	function gereResize(){

		if(currentQuoi!=""){

			show(currentQuoi.id,currentWhere.id);

		}

	}

	

	window.onresize = gereResize;

	

	function show2(origine,quoi,where){

		if (document.all){ // only for IE 

			origine=document.getElementById(origine);

			if (origine.style.display != "none"){

				show(quoi,where);			

			}

		}

		else {

			show(quoi,where);

		}

	}



	

		

			function upperCase(object) {

         	var doc = remplacecar(object.value);

         	doc = suppblancs(doc);

         	object.value = doc.toUpperCase();

         }

		 

		 

		 //---------------------------------------------------------------------------------------

function remplacecar(doc) {

var text = doc;

    text = replace(text,unescape('%C0'),'A');

    text = replace(text,unescape('%C1'),'A');

    text = replace(text,unescape('%C2'),'A');

    text = replace(text,unescape('%C3'),'A');

    text = replace(text,unescape('%C4'),'A');

    text = replace(text,unescape('%C5'),'A');

    text = replace(text,unescape('%C6'),'E');

    text = replace(text,unescape('%C7'),'C');

    text = replace(text,unescape('%C8'),'E');

    text = replace(text,unescape('%C9'),'E');

    text = replace(text,unescape('%CA'),'E');

    text = replace(text,unescape('%CB'),'E');

    text = replace(text,unescape('%CC'),'I');

    text = replace(text,unescape('%CD'),'I');

    text = replace(text,unescape('%CE'),'I');

    text = replace(text,unescape('%CF'),'I');

    text = replace(text,unescape('%D0'),'D');

    text = replace(text,unescape('%D1'),'N');

    text = replace(text,unescape('%D2'),'O');

    text = replace(text,unescape('%D3'),'O');

    text = replace(text,unescape('%D4'),'O');

    text = replace(text,unescape('%D5'),'O');

    text = replace(text,unescape('%D6'),'O');

    text = replace(text,unescape('%D7'),'O');

    text = replace(text,unescape('%D8'),'O');

    text = replace(text,unescape('%D9'),'U');

    text = replace(text,unescape('%DA'),'U');

    text = replace(text,unescape('%DB'),'U');

    text = replace(text,unescape('%DC'),'U');

    text = replace(text,unescape('%DD'),'Y');

    text = replace(text,unescape('%DE'),'P');

    text = replace(text,unescape('%DF'),'B');

    text = replace(text,unescape('%E0'),'a');

    text = replace(text,unescape('%E1'),'a');

    text = replace(text,unescape('%E2'),'a');

    text = replace(text,unescape('%E3'),'a');

    text = replace(text,unescape('%E4'),'a');

    text = replace(text,unescape('%E5'),'a');

    text = replace(text,unescape('%E6'),'e');

    text = replace(text,unescape('%E7'),'c');

    text = replace(text,unescape('%E8'),'e');

    text = replace(text,unescape('%E9'),'e');

    text = replace(text,unescape('%EA'),'e');

    text = replace(text,unescape('%EB'),'e');

    text = replace(text,unescape('%EC'),'i');

    text = replace(text,unescape('%ED'),'i');

    text = replace(text,unescape('%EE'),'i');

    text = replace(text,unescape('%EF'),'i');

    text = replace(text,unescape('%F0'),'&');

    text = replace(text,unescape('%F1'),'n');

    text = replace(text,unescape('%F2'),'o');

    text = replace(text,unescape('%F3'),'o');

    text = replace(text,unescape('%F4'),'o');

    text = replace(text,unescape('%F5'),'o');

    text = replace(text,unescape('%F6'),'o');

    text = replace(text,unescape('%F7'),'o');

    text = replace(text,unescape('%F8'),'o');

    text = replace(text,unescape('%F9'),'u');

    text = replace(text,unescape('%FA'),'u');

    text = replace(text,unescape('%FB'),'u');

    text = replace(text,unescape('%FC'),'u');

    text = replace(text,unescape('%FD'),'y');

    text = replace(text,unescape('%FE'),'p');

    text = replace(text,unescape('%FF'),'y');

    text = replace(text,unescape('%27'),' ');

    doc = text;

return doc;

}



//---------------------------------------------------------------------------------------

function replace(Value, Text, By) {

if (Value.length<=0) return Value;

var re = new RegExp(Text,"g");

return Value.replace(re, By);

}

//---------------------------------------------------------------------------------------

function suppblancs(strText) {

// removal of the white at the head of text  

while (strText.substring(0,1) == ' ')

        strText = strText.substring(1, strText.length);  

//removal of the white at the end of the text  

while (strText.substring(strText.length-1,strText.length) == ' ')

        strText = strText.substring(0, strText.length-1);

return strText;



}



	

		

	//-->