function verifMail(theForm,theMail){
	theObject=eval("document."+theForm+"."+theMail+"");longueur = theObject.value.length;position = theObject.value.indexOf("@");left_str = theObject.value.substring(0,position);	right_str = theObject.value.substring(position+1,longueur);	left_len = left_str.length;	right_len = right_str.length;right_longueur = right_str.length;	right_position = right_str.lastIndexOf(".");	l_right_str = right_str.substring(0,right_position);	r_right_str = right_str.substring(right_position+1,right_longueur);	l_right_len = l_right_str.length;	r_right_len = r_right_str.length;var Mod1 = /[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/i;var Mod2 = /[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/g;
	if (Mod1.test(theObject.value) == true){theObject.focus();return false;}	
	if (Mod2.test(theObject.value) == true){theObject.focus();return false;}	
	if (theObject.value.indexOf("@")==-1){theObject.focus();return false;}
	if ((left_len==0) || (right_len==0)){theObject.focus();	return false;}
	if (right_str.indexOf(".")==-1){theObject.focus();return false;}
	if ((r_right_len < 2)||(r_right_len > 4)){theObject.focus();return false;}
	if (l_right_len==0){theObject.focus();return false;}
	return true;
}
function trim(s){return s.replace(/^\s+|\s+$/g, "");}
function verifFormSearch(obj){if(trim(obj.insearch.value).length<4){obj.insearch.focus();messageAlert('<br /><br />Vous devez mettre 4 caract&egrave;res minimum !!!','insearch');return false;}return true;}
function divInfoClose(nomdiv) {thediv = eval("document.getElementById('"+nomdiv+"')");thediv.style.display='none';}
function popupcentree(page,nom,largeur,hauteur,options){var top=(screen.height-hauteur)/2;var left=(screen.width-largeur)/2;var thepopup = window.open(page,nom,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);}
function cm_bwcheck(){
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck()
