var xmlHttp1
//---------------- New Lauched car--------------------------
function changeLauchedCar(idbs)
{ 
	xmlHttp1=GetXmlHttpObject1()
	if (xmlHttp1==null){
		alert ("Browser does not support HTTP Request")
		return
	}
	//document.getElementById("listsubcat").style.display = "none";
	var url1="ajax_exe.php"
	url1=url1+"?act=changeLauchedCar&idarticle="+idbs;
	url1=url1+"&sid="+Math.random()
	xmlHttp1.onreadystatechange=stateChanged1
	xmlHttp1.open("GET",url1,true)
	xmlHttp1.send(null)
	//Change picture 
	xmlHttp2=GetXmlHttpObject1()
	if (xmlHttp2==null){
		alert ("Browser does not support HTTP Request")
		return
	}
	var url_p="ajax_exe.php"
	url_p=url_p+"?act=changeLauchedCarPIC&idarticle="+idbs;
	url_p=url_p+"&sid="+Math.random()
	xmlHttp2.onreadystatechange=stateChanged_Pic
	xmlHttp2.open("GET",url_p,true)
	xmlHttp2.send(null)
}

function stateChanged1() {
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete"){ 
	   document.getElementById("changeLauchedCar").innerHTML=xmlHttp1.responseText
    } 
} 
function stateChanged_Pic() {
	if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete"){ 
	   document.getElementById("changeLauchedCarPic").innerHTML=xmlHttp2.responseText
    } 
}




function GetXmlHttpObject1()
{
  var xmlHttp1=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp1=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp1=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp1=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp1;
}

