
<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){
if ( (document.dataform.realname.value == "") || (document.dataform.email.value == "") || (document.dataform.feedback.value == ""))
{
    alert ("S'il vous plaît remplit tous les champs obligatoires");
    return (false);
}

if(document.dataform.email.value.indexOf(" ") >= 0)
{
	alert("S'il vous plaît entrer votre e-mail-pièce d'identité sans l'espace blanc.");
	document.dataform.email.focus();
	return (false);
}
if ( (document.dataform.email.value.indexOf("@") == -1) || (document.dataform.email.value.indexOf(".") == -1) )
{
	alert("S'il vous plaît entrer une e-mail-pièce d'identité valide"); 
	document.dataform.email.focus();
	return (false);
}


BeforeAtRate = document.dataform.email.value.substring(0,document.dataform.email.value.indexOf("@"));
AfterAtRate = document.dataform.email.value.substring(document.dataform.email.value.indexOf("@")+1,document.dataform.email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("S'il vous plaît entrer une e-mail-pièce d'identité valide"); 
	document.dataform.email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("S'il vous plaît entrer une e-mail-pièce d'identité valide"); 
	document.dataform.email.focus();
	return (false);
}

/*type1=document.dataform.elements[15].status;
type2=document.dataform.elements[16].status;
type3=document.dataform.elements[17].status;

if((type1==false) && (type2==false) && (type3==false))
{
alert('Sil vous plaît choisir le type de Réactions');
return false;
}*/

newCookie = document.dataform.realname.value;
newCookie +="|"+document.dataform.email.value;
newCookie +="|";
setCookie("newImeshID",newCookie);
return true;
}
function get(){
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 0){
		if (document.dataform.realname.value.length == 0) document.dataform.realname.value = Values[0];
		if (document.dataform.email.value.length == 0)    document.dataform.email.value = Values[1];
	}
}
return true;
}
function setCookie(name, value){
if (value.length > 0)
 document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"+"path=/;"
}
function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search) 
                    if (offset != -1) { // if cookie exists 
                              offset += search.length 
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset) 
                              // set index of end of cookie value
                              if (end == -1) end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    } 
          }
return "";
}
// STOP HIDING FROM OTHER BROWSERS -->