﻿var xmlHttp;
function showVersions(producer,model)
{ 
xmlHttp=GetVersionXmlHttpObject();
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
var url="getversion.php";
url=url+"?q="+producer;
url=url+"&m="+model;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
  document.getElementById("version_div").innerHTML=xmlHttp.responseText
 } 
}
function GetVersionXmlHttpObject()
{
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 showVersions2(producer2,model2)
{ 
xmlHttp2=GetVersionXmlHttpObject2();
if (xmlHttp2==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
var url2="getversion2.php";
url2=url2+"?q="+producer2;
url2=url2+"&m="+model2;
url2=url2+"&sid="+Math.random();
xmlHttp2.onreadystatechange=stateChanged5;
xmlHttp2.open("GET",url2,true);
xmlHttp2.send(null);
}
function stateChanged5() 
{ 
if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete")
 { 
  document.getElementById("version_div2").innerHTML=xmlHttp2.responseText
 } 
}
function GetVersionXmlHttpObject2()
{
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 showVersions3(producer3,model3)
{ 
xmlHttp3=GetVersionXmlHttpObject3();
if (xmlHttp3==null)
 {
 alert ("Browser does not support HTTP Request");
 return
 }
var url3="getversion3.php";
url3=url3+"?q="+producer3;
url3=url3+"&m="+model3;
url3=url3+"&sid="+Math.random();
xmlHttp3.onreadystatechange=stateChanged30;
xmlHttp3.open("GET",url3,true);
xmlHttp3.send(null);
}
function stateChanged30() 
{ 
if (xmlHttp3.readyState==4 || xmlHttp3.readyState=="complete")
 { 
  document.getElementById("version_div3").innerHTML=xmlHttp3.responseText
 } 
}
function GetVersionXmlHttpObject3()
{
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;
}
