document.write("<img id=xajax name=xajax border=0 src='img/loader.gif' style='position:absolute;top:300px;left:" + (document.body.clientWidth/2-20) + "px;display:none'>");

function ajaxform(th){ 
put_show("xajax");
var c= "";
var input=document.getElementsByTagName("INPUT") ;
var method=th.method;
var url = th.action;
method=method.toUpperCase();
for (i=0;i<input.length;i++)
{inp=input[i];
if (inp.name>"")
if (inp.type=="radio" || inp.type=="checkbox")
{if (inp.checked==true)c =c + inp.name + "=" + inp.value +"&";}
else{if (inp.type=="text" || inp.type=="password" || inp.type=="hidden")c =c + inp.name + "=" + inp.value +"&";}}
var input=document.getElementsByTagName("SELECT") ;
for (i=0;i<input.length;i++)
{inp=input[i];if (inp.name>"")c =c + inp.name + "=" + inp.value +"&";}
var xhr;try {xhr = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xhr = new XMLHttpRequest()}
xhr.onreadystatechange  = function(){
if(xhr.readyState  == 4){
put_hide("xajax");
if(xhr.status  == 200)retour(xhr.responseText);}}; 
if(url.indexOf("?",1)>0){url=url+c;} else {url=url+"?"+c;}
if (method=="POST"){
xhr.open("POST", url,  true); 
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send(c);
}else{
xhr.open(th.method, url,  true); 
xhr.setRequestHeader("Content-Type", "text/html; charset=UTF-8"); ;
xhr.send(null);}return false;} 

function ajaxinput(th,url,method){ 
put_show("xajax");
var a1="";	
var c =th.name + "=" + th.value;
var n =th.name;
if(url.indexOf("?",1)>0){url=url+c;} else {url=url+"?"+c;}
if(!method) method="GET";
method=method.toUpperCase();
try {xhr = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xhr = new XMLHttpRequest()}
xhr.onreadystatechange  = function()
{
if(xhr.readyState  == 4){
put_hide("xajax");
if(xhr.status  == 200){retour(n +";"+xhr.responseText);}}}; 
if (method=="POST"){
xhr.open("POST", url,  true);
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send(c);} 
else {xhr.open("GET", url,  true);
xhr.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
xhr.send(null);
}return false ;}

function ajaxrss(th,url){ 
var c =th.name + "=" + th.value;
if(url.indexOf("?",1)>0){url=url+c;} else {url=url+"?"+c;}
try {xhr = new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){xhr = new XMLHttpRequest()}
xhr.onreadystatechange  = function()
{if(xhr.readyState  == 4){if(xhr.status  == 200){
traiterss(xhr.responseXML.documentElement);}}}; 
xhr.open("GET", url,  true);
xhr.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
xhr.send(null);
return false ;}

function traiterss(x){ 
var cc="";
for (i=0 ; i<x.getElementsByTagName('description').length;i++ )
cc = cc + x.getElementsByTagName('description')[i].firstChild.nodeValue;
retour(cc);
}