﻿var xmlHttp;
function showModels(producer)
{ 
	xmlHttp=GetXmlHttpObject();
	// xmlHttp.setRequestHeader("Content-Type","text/html; charset:windows-1255");
	if (xmlHttp==null)
	 {
		 alert ("Browser does not support HTTP Request")
		 return
	 }
	var url="getmodels.php"
	url=url+"?q="+producer
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("models_div").innerHTML=xmlHttp.responseText;
 } 
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}
var xmlHttp2;
function showModels2(producer2) {
	xmlHttp2=GetXmlHttpObject2();
	if (xmlHttp2==null)
	 {
		 alert ("Browser does not support HTTP Request")
		 return
	 }
	var url2="getmodels2.php"
	url2=url2+"?q="+producer2
	xmlHttp2.onreadystatechange=stateChanged4 
	xmlHttp2.open("GET",url2,true)
	xmlHttp2.send(null)
}
function stateChanged4() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
 { 
 document.getElementById("models_div2").innerHTML=xmlHttp2.responseText;
 } 
}
function GetXmlHttpObject2()
{
var xmlHttp2=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp2=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp2;
}
var xmlHttp3;
function showModels3(producer3) {
	xmlHttp3=GetXmlHttpObject3();
	if (xmlHttp3==null)
	 {
		 alert ("Browser does not support HTTP Request")
		 return
	 }
	var url3="getmodels3.php"
	url3=url3+"?q="+producer3
	xmlHttp3.onreadystatechange=stateChanged31 
	xmlHttp3.open("GET",url3,true)
	xmlHttp3.send(null)
}
function stateChanged31() 
{ 
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
 { 
 document.getElementById("models_div3").innerHTML=xmlHttp3.responseText;
 } 
}
function GetXmlHttpObject3()
{
var xmlHttp3=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp3=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp3=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp3=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp3;
}

