var ajax = false;

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
    ajax	 = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
    try {
        ajax = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
    ajax = false;
    }
}
@end @*/

if (! ajax && typeof XMLHttpRequest != 'undefined')
{
	ajax = new XMLHttpRequest();
}

function getMyHTML(serverPage, objID)
{
	var obj = document.getElementById(objID);
	ajax.open("GET", serverPage);
	ajax.onreadystatechange = function()
	{
		if (ajax.readyState == 4 && ajax.status == 200)
		{
			obj.innerHTML = ajax.responseText;
		}
	}
	ajax.send(null);
}

function getInfo()
{
	var get_id = document.getElementById("idMake");
	var url = "inc/getModel.php?marque=" + get_id[get_id.selectedIndex].value;
	getMyHTML(url,"blockModel");
}
