function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
    }
	
	function getnewmodel(catid) {		
		
		var strURL="/newdropdownmenu2/findmodel.asp?catid="+catid;
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
			   if(req.readyState == 1 || req.readyState == "loading")
   {
       document.getElementById('modelnewdiv').innerHTML="<img src='/images/loading.gif' border='0' alt='running' />";
   }
				if (req.readyState==4 || req.readyState=="complete"){
					if (req.status == 200) {						
						document.getElementById('modelnewdiv').innerHTML=req.responseText;
										
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	function getnewCity(catid,modelid,carbid,anneeid) {		
		var strURL="/newdropdownmenu2/findCity.asp?catid="+catid+"&modelid="+modelid+"&carbid="+carbid+"&anneeid="+anneeid;
		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				 if(req.readyState == 1 || req.readyState == "loading")
   {
       document.getElementById("citynewdiv").innerHTML="<img src='/images/loading.gif' border='0' alt='running' />";
   }
				if (req.readyState==4 || req.readyState=="complete"){
					
					if (req.status == 200) {						
						document.getElementById('citynewdiv').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}
	
	function getnewCarburation(catid,modelid) {		
		var strURL="/newdropdownmenu2/findCarburation.asp?catid="+catid+"&modelid="+modelid;
		//var strURL="/newdropdownmenu2/findCarburation.asp?catid="+catid+"&modelid="+modelid+"&villeid="+villeid;
		//strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				 if(req.readyState == 1 || req.readyState == "loading")
   {
       document.getElementById("carburnewdiv").innerHTML="<img src='/images/loading.gif' border='0' alt='running' />";
   }
				if (req.readyState==4 || req.readyState=="complete"){
					if (req.status == 200) {						
						document.getElementById("carburnewdiv").innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}
	function getnewannee(catid,modelid,carbid) {		
		var strURL="/newdropdownmenu2/findannee.asp?catid="+catid+"&modelid="+modelid+"&carbid="+carbid;
		//strURL=strURL+"&sid="+Math.random()
		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				 if(req.readyState == 1 || req.readyState == "loading")
   {
       document.getElementById('boitenewdiv').innerHTML="<img src='/images/loading.gif' border='0' alt='running' />";
   }
				if (req.readyState==4 || req.readyState=="complete"){
					if (req.status == 200) {						
						document.getElementById('boitenewdiv').innerHTML=req.responseText;						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}
				
	}