var xmlHttp





var cococo=-1;

function storebbb()
{ 

document.getElementById("bottom").innerHTML="";
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="zone2.asp"
url=url+"?rubrique="+document.getElementById( "rubrique" ).value+"&num="+document.getElementById( "monnum" ).value;
if (cococo!=-1)
{
	url=url+"&PageNumber="+cococo;
}
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedb
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}


function storeccc()
{ 

//alert("bonjour");

xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="+prenomajax.asp"
url=url+"?newname="+document.getElementById( "searchname" ).value+"&sexe=";

if (document.getElementById("sexe0").checked)
   {selection = 'm';
   }
   else{     
   selection = 'f';}															
 
url=url+selection

url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedc 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function frompaging(pn)
{
	document.getElementById("txtHintb").innerHTML="";
	cococo=pn;
	storebbb();}

function storeddd()
{ 
//alert(document.getElementById( "cococo" ).innerHTML);
//document.write(document.getElementById( "monnum" ).value);
//document.write(document.getElementById( "rubrique" ).value);
document.getElementById("bottom").innerHTML="";
document.getElementById("txtHintb").innerHTML="";
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="zone2.asp"
//url=url+"?rubrique="+document.getElementById( "rubrique" ).value+"&num="+document.getElementById( "monnum" ).value;//+"&PageNumber="+document.getElementById( "cococo" ).innerHTML;
url=url+"?test=1"
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedd
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}



function showHint(str)
{
if (str.length==0)
{ 
document.getElementById("txtHint").innerHTML=""
return
}
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="+prenomajax.asp"
url=url+"?prl="+str+"&sexe="
if (document.getElementById("sexe0").checked)
{selection = 'm';}
else
{selection = 'f';}     
url=url+selection
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChangedc 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 



function stateChangedb() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHintb").innerHTML=xmlHttp.responseText 
} 
} 

function stateChangedd() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHintd").innerHTML=xmlHttp.responseText 
} 
} 

function stateChangedc() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
} 



function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}