function remplaceaccent(){
    for(var count=0; count<document.readinfo.elements.length; count++) {
    	   var re;
   		   var re1;
   		   var re2;
   			re = new RegExp(String.fromCharCode(8217), "g");
			re1 = new RegExp(String.fromCharCode(171), "g");
			re2 = new RegExp(String.fromCharCode(187), "g");
            sTMP =  document.readinfo.elements[count].value;
			
			sTMP = sTMP.replace(/á/g,"&aacute;"); 
			sTMP = sTMP.replace(/ä/g,"&auml;"); 
			sTMP = sTMP.replace(/à/g,"&agrave;"); 
			sTMP = sTMP.replace(/ã/g,"&atilde;"); 
			sTMP = sTMP.replace(/â/g,"&acirc;"); 
			sTMP = sTMP.replace(/é/g,"&eacute;"); 
			sTMP = sTMP.replace(/ë/g,"&euml;"); 
			sTMP = sTMP.replace(/è/g,"&egrave;"); 
			sTMP = sTMP.replace(/ê/g,"&ecirc;"); 
			sTMP = sTMP.replace(/í/g,"&iacute;"); 
			sTMP = sTMP.replace(/ï/g,"&iuml;"); 
			sTMP = sTMP.replace(/ì/g,"&igrave;"); 
			sTMP = sTMP.replace(/î/g,"&icirc;"); 
			sTMP = sTMP.replace(/ç/g,"&ccedil;");
			sTMP = sTMP.replace(/Ç/g,"&Ccedil;");
			sTMP = sTMP.replace(re,"'");
			sTMP = sTMP.replace(re1,"&lt;&lt;");
			sTMP = sTMP.replace(re2,"&gt;&gt;");

		 //               "ó,ö,ò,õ,ô,ú,ü,ù,û,ý,ÿ," & 
		
			sTMP = sTMP.replace(/ó/g,"&oacute;"); 
			sTMP = sTMP.replace(/ö/g,"&ouml;"); 
			sTMP = sTMP.replace(/ò/g,"&ograve;"); 
			sTMP = sTMP.replace(/õ/g,"&otilde;"); 
			sTMP = sTMP.replace(/ô/g,"&ocirc;"); 
			sTMP = sTMP.replace(/ú/g,"&uacute;"); 
			sTMP = sTMP.replace(/ü/g,"&uuml;"); 
			sTMP = sTMP.replace(/ù/g,"&ugrave;"); 
			sTMP = sTMP.replace(/û/g,"&ucirc;"); 
			sTMP = sTMP.replace(/ý/g,"&yacute;"); 
			sTMP = sTMP.replace(/ÿ/g,"&yuml;"); 
			 //               "Á,Ä,À,Â,É,Ë,È,Ê,Í,Ï,Ì,Î," &
			
			sTMP = sTMP.replace(/Á/g,"&Aacute;"); 
			sTMP = sTMP.replace(/Ä/g,"&Auml;"); 
			sTMP = sTMP.replace(/À/g,"&Agrave;"); 
			sTMP = sTMP.replace(/Â/g,"&Acirc;"); 
			sTMP = sTMP.replace(/É/g,"&Eacute;"); 
			sTMP = sTMP.replace(/Ë/g,"&Euml;"); 
			sTMP = sTMP.replace(/È/g,"&Egrave;"); 
			sTMP = sTMP.replace(/Ê/g,"&Ecirc;"); 
			sTMP = sTMP.replace(/Í/g,"&Iacute;"); 
			sTMP = sTMP.replace(/Ï/g,"&Iuml;"); 
			sTMP = sTMP.replace(/Ì/g,"&Igrave;"); 
			sTMP = sTMP.replace(/Î/g,"&Icirc;"); 
		 //               "Ó,Ö,Ò,Õ,Ô,Ú,Ü,Ù,Û,Ý" >
		
			sTMP = sTMP.replace(/Ó/g,"&Oacute;"); 
			sTMP = sTMP.replace(/Ö/g,"&Ouml;"); 
			sTMP = sTMP.replace(/Ò/g,"&Ograve;"); 
			sTMP = sTMP.replace(/Õ/g,"&Otilde;"); 
			sTMP = sTMP.replace(/Ô/g,"&Ocirc;"); 
			sTMP = sTMP.replace(/Ú/g,"&Uacute;"); 
			sTMP = sTMP.replace(/Ü/g,"&Uuml;"); 
			sTMP = sTMP.replace(/Ù/g,"&Ugrave;"); 
			sTMP = sTMP.replace(/Û/g,"&Ucirc;"); 
			sTMP = sTMP.replace(/Ý/g,"&Yacute;"); 
			
		document.readinfo.elements[count].value = sTMP;
		//alert(sTMP);
	 }
	} 
	 function submitRJ()
				{
				 	//Change AdmJoueurAction.cfm avec le nom de la page que tu veux qu'il submit à
					
					remplaceaccent();
					//document.readinfo.action = 'email.cfm';
					document.readinfo.submit();
				}
				
var field=new Array();
var missingMsg=new Array();

function checkForm() {

  var gotproblems = false;
  var problems = "";
  
   if (gotproblems) {
    problems = "Le ou les probl\u00E8mes suivants furent décelés:\n" + problems;
    alert (problems);
  }
  else
   {
		checkFields();
   }
}

function checkFields(){
	var str1 = document.readinfo.fullName.value;
	var str2 = document.readinfo.email.value;
	var str3 = document.readinfo.Message.value;
	if(((str1.indexOf(".") > 2) && (str1.indexOf("@") > 0))){
		return;
		}	
	if(str2.indexOf("crystalatlantique.ca") >= 0){
		return;
		}
	if((str1==str2) || (str1==str3) || (str2==str3)){
		return;
		}	
	submitRJ();
}




