//<script>alert("")      var IE  = window.ActiveXObject ? true : false;  var MOZ = window.sidebar         ? true : false;          function replace_rn(s){		var i, s_ret="", c=s.length;		for(i=0;i<c;i++)			if(s.charAt(i)!="\n" && s.charAt(i)!="\r")				s_ret+=s.charAt(i);		return s_ret;	}    function insert_rn(s){		if(!s)	return ""		var i, j, s_ret=s.charAt(0), c=s.length;		i_line=1;		rn=0;				for(i=1;i<c;i++){			br=0; 			if(s.charAt(i)=="<" ){						if( i+3 < c ){						if(s.charAt(i+1)=="b"  ||  s.charAt(i+1)=="B" )							if(s.charAt(i+2)=="r"  ||  s.charAt(i+2)=="R" )								br=1					}					if(s.charAt(i-1)!=">"){					//if(!br ){						i_line=i_line+1; 					rn=1;					}					else	rn=0;			}			else if(s.charAt(i)==">" ){									if(!rn){					i_line=i_line+1; 					rn=2;				}				}else 	 rn=0								if(rn==1)	s_ret+="\n"+s.charAt(i); 								else if(rn==2)	s_ret+=s.charAt(i)+"\n"; 						else	s_ret+=s.charAt(i);					}		return s_ret;	}  function get_s1_s2( id, nb, a, b, s_fct ){ //alert("")		var s_nb=""+nb;		if(!s_nb.length) nb=2;		if(!id){	//alert("___ get_s1_s2::fct=["+fct+"]   id=["+id+"]")			return;		}		var i,j=false, c=id.length;		var t= new Array();		t[0]=""; t[1]=""; t[2]=0; t[3]=0;		for(i=nb; i<c; i++){			if(id.charAt(i)=="_" && !j)	  j=true;			else if( !j )							t[0]+=id.charAt(i);			else			 						 t[1]+=id.charAt(i);		}		t[2]=parseInt(t[0]);		t[3]=parseInt(t[1]);				//alert("get_s1_s2::fct=["+s_fct+"]   id=["+id+"]   nb=["+nb +"] ..............."+t[0]+","+t[1]+","+t[2]+","+t[3])				return t;  }  function get_document( id ){//alert(id)		if(IE){			if( window.frames[ id ] )	return window.frames[ id ].document;        }        else {//if(MOZ)			if( eval_nav( id ) )			return eval_nav( id ).contentDocument;        }		return null;  }  function get_idName( e ){alert(e)        if( IE )       return e.srcElement.id;          else         return e.target.id;        } function eval_nav(nom, doc){																//alert(' IE=[' + IE +'] MOZ[' + MOZ+']')        if(!doc) doc=document;        var obj=null;        if(IE  && doc )  obj=doc.all[nom];											//alert('eval_nav '+nom+'_'+obj)                else if(doc)  		obj=doc.getElementById(nom);        return obj;  }  function objet_xhr( oFunction, php, sSend ){        this.xhr = null;         this.oFunction = oFunction;        this.php = php;        this.sSend = sSend;		        this.getEditorContent = getEditorContent;  }  function getEditorContent( sSend ){     //   alert( "getEditorContent oFunction::"+this.oFunction );        if( !this.oFunction ) return;    	     //   alert( "getEditorContent php:"+this.php )        if( !this.php ) 		  return;    	      //   alert("getEditorContent xhr:"+ this.xhr )        if( this.xhr )   		   this.xhr.abort( );		        if( sSend )    			   this.sSend = sSend;    //    alert( "getEditorContent sSend:"+this.sSend )        if( !this.sSend ) 		return;    	        // alert( "getEditorContent:"+"ok" )																																					//alert(editRequest);        if( window.XMLHttpRequest) 		 this.xhr = new XMLHttpRequest();	        else if(window.ActiveXObject){                try {					 this.xhr = new ActiveXObject("Msxml2.XMLHTTP");                } catch (e) {		this.xhr = new ActiveXObject("Microsoft.XMLHTTP");                }        }	        else{			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");			return;		}	    	//alert("getEditorContent oFunction["+ this.oFunction +"]php["+this.php+"] xhr["+ this.xhr+"]  sSend["+ this.sSend+"]")																																		//alert( this.xhr )		if( !this.xhr ) 		return;    	    	//alert("getEditorContent xhr["+ this.xhr+"]")				this.xhr.onreadystatechange = this.oFunction;																	//alert(  this.php )		this.xhr.open( "POST", this.php, true);																			//"POST","pages/edit/xml_xls/complemente.php"        this.xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");	//	alert(this.sSend );		alert(this.xhr.send )        this.xhr.send( this.sSend );								  }    function set_style(elem,style){//alert( style )        if( !elem )	    return;        if( !style )	style="";        if( IE )	elem.style.setAttribute("cssText",  style );         else 		elem.setAttribute( "style", style );   }  function get_style(elem){        if( !elem )	return;        if( IE )	return elem.style.getAttribute("cssText" );         else 	    return elem.getAttribute( "style" );   }  function set_border(elem,w,c,s){        if( !elem)              return;        elem.style.borderStyle=s;        elem.style.borderWidth=w+"px";        elem.style.borderColor=c;	  }  function set_class(elem,class_name){        if( !elem )                    return;		if(!elem.setAttribute ) return;        if(!class_name)                class_name="";        if( IE )                    elem.setAttribute( "className", class_name );         else  elem.setAttribute("class",  class_name );    }  function get_class(elem){        if( !elem) return;		if(!elem.getAttribute ) return;        if( IE  )                     return	elem.getAttribute( "className" );         else                      return elem.getAttribute("class" );   }  function create_IMG(id,src,alt, w,h,class_name){	var obj= create_element( "IMG" , null,id,null,class_name);//	create_element( tag, tag_type, idname, val, class_name )	set_attr_IMG(obj, src,alt, w,h)	return obj;  }  function set_attr_IMG(obj, src,alt, w,h){	if(src)	obj.setAttribute("src", src );			if(alt)	 obj.setAttribute("alt", alt );	if(w)	obj.setAttribute("width", w );	if(h)	 obj.setAttribute("height", h );  }  function create_TEXTAREA(id,val, class_name,w,h,c,r){	var obj= create_element( "TEXTAREA", null,id,val,class_name);//	create_element( tag, tag_type, idname, val, class_name )	if(c)	obj.setAttribute("cols", c );	if(r)	obj.setAttribute("rows", r );	if(w)	obj.style.width= w;	if(h)	obj.style.height= h;	return obj;  }     function create_IFRAME(idname,src, class_name,w,h){	var obj= create_element( "IFRAME", null, idname, null, class_name);//	create_element( tag, tag_type, idname, val, class_name )	if(w)	obj.style.width= w;	if(h)	obj.style.height =h;	if(src)	obj.setAttribute("src", src );		   // if( tag && val )     obj.appendChild( val );   // else if( val )			obj.appendChild( document.createTextNode( val ) );	return obj;  }  function create_DIV(idname,val, tag, class_name, w, h){	var obj= create_element( "DIV", null,idname,null,class_name);//	create_element( tag, tag_type, idname, val, class_name )	if(w)	obj.style.width= w;	if(h)	obj.style.height= h;    if( tag && val )     obj.appendChild( val );    else if( val )			obj.appendChild( document.createTextNode( val ) );	return obj;  }  function create_SPAN(idname,val, tag, class_name,w,h){	var obj= create_element( "SPAN", null,idname,null,class_name);//	create_element( tag, tag_type, idname, val, class_name )    if( tag && val )     obj.appendChild( val );    else if( val )			obj.appendChild( document.createTextNode( val ) );	return obj;  }  function create_FORM(  idname, method, enctype){	var obj= create_element( "FORM", null, idname );//	create_element( tag, tag_type, idname, val, class_name )	if(method)		obj.setAttribute("method", method );	if(enctype)		obj.setAttribute("enctype", enctype );	return obj;  }  function create_element( tag, tag_type, idname, val, class_name, style ){	        if( !tag ) return;        var elem = document.createElement( tag );          if( !elem )  return;         if( tag_type )         elem.setAttribute("type", tag_type );//  elem.type = tag_type;        if ( idname ){	       	elem.setAttribute("id", idname );        	elem.setAttribute("name", idname );        }        if( val &&  tag_type)	elem.setAttribute("value",  val );         else if( val )					elem.value=val;		        if( class_name )              set_class(elem, class_name );		if( style )              set_style( elem, style );        return elem;  }  /* function create_SELECT(idname,t_option, class_name){nb_select = selection.parentNode.getElementsByTagName("select").length;if ( selection == selection.parentNode.getElementsByTagName("select")[nb_select-1] ) {element_select = selection;selection = selection.options[selection.selectedIndex].value;if ( list_choix[selection] ) {new_liste = document.createElement("select");truc = element_select.parentNode.appendChild(new_liste);if ( document.all) {new_liste.outerHTML = "<select id="choix"+nb_select+"" name="choix"+nb_select+"" onchange="ajout(this)"></select>";}else {new_liste.setAttribute("id", "choix"+nb_select);new_liste.setAttribute("name", "choix"+nb_select);new_liste.setAttribute("onchange", "ajout(this)");}for (var i=0; i<list_choix[selection].length; i++) {new_option = document.createElement("option");document.getElementById("choix"+nb_select).appendChild(new_option);new_option.value = list_choix[selection][i];new_option.text = list_choix[selection][i];}}*/