﻿var xmlHttp

function showUser(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var url="http://www.omran-hj.com/index.php?tool=country&do=browse_city&op=ajax"
url=url+"&qq="+str
//url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 document.getElementById("txtHint").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 xmlHttpp

function showUser2(str2)
{ 
xmlHttpp=GetXmlHttpObject2()
if (xmlHttpp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var url="http://www.omran-hj.com/index.php?tool=country&do=browse_city&op=ajax"
url=url+"&qq="+str2
//url=url+"&sid="+Math.random()
xmlHttpp.onreadystatechange=stateChanged2
xmlHttpp.open("GET",url,true)
xmlHttpp.send(null)
}

function stateChanged2() 
{ 
if (xmlHttpp.readyState==4 || xmlHttpp.readyState=="complete")
 { 
 document.getElementById("txtHinty").innerHTML=xmlHttpp.responseText 

 } 
}


function GetXmlHttpObject2()
{
var xmlHttpp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpp;
}


///////////////////////////////////


var xmlHttppp

function showUser3(str3)
{ 
xmlHttppp=GetXmlHttpObject3()
if (xmlHttppp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var url="http://www.omran-hj.com/index.php?tool=car&do=browse_cat_sub&op=ajax"
url=url+"&qqq="+str3
//url=url+"&sid="+Math.random()
xmlHttppp.onreadystatechange=stateChanged3
xmlHttppp.open("GET",url,true)
xmlHttppp.send(null)
}

function stateChanged3() 
{ 
if (xmlHttppp.readyState==4 || xmlHttppp.readyState=="complete")
 { 
 document.getElementById("txtHintyy").innerHTML=xmlHttppp.responseText 
 document.getElementById("txtHintyyy").innerHTML='الحي  :&nbsp;&nbsp;&nbsp;&nbsp; <select disabled="disabled" class="input"  ><option value="" >-- اختر الحي  --</option></select>' 

 } 
}


function GetXmlHttpObject3()
{
var xmlHttppp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttppp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttppp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttppp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttppp;
}




////////////////////////////////////////
var xmlHttpppp

function showUser4(str4)
{ 
xmlHttpppp=GetXmlHttpObject4()
if (xmlHttpppp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var url="http://localhost/car/index.php?tool=country&do=browse_warm&op=ajax"
url=url+"&qqqq="+str4
//url=url+"&sid="+Math.random()
xmlHttpppp.onreadystatechange=stateChanged4
xmlHttpppp.open("GET",url,true)
xmlHttpppp.send(null)
}

function stateChanged4() 
{ 
if (xmlHttpppp.readyState==4 || xmlHttpppp.readyState=="complete")
 { 
 document.getElementById("txtHintyyy").innerHTML=xmlHttpppp.responseText 
 } 
}


function GetXmlHttpObject4()
{
var xmlHttpppp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpppp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpppp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpppp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpppp;
}
















////////////////////////////////////////
var xmlHttppppp

function showUser5(str5)
{ 
xmlHttppppp=GetXmlHttpObject5()
if (xmlHttppppp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 
var url="http://localhost/car/index.php?tool=ga3at&do=search_box&op=ajax"
url=url+"&qqqqq="+str5
//url=url+"&sid="+Math.random()
xmlHttppppp.onreadystatechange=stateChanged5
xmlHttppppp.open("GET",url,true)
xmlHttppppp.send(null)
}

function stateChanged5() 
{ 
if (xmlHttppppp.readyState==4 || xmlHttppppp.readyState=="complete")
 { 
 document.getElementById("txtHintyyyy").innerHTML=xmlHttppppp.responseText 
 } 
}


function GetXmlHttpObject5()
{
var xmlHttppppp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttppppp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttppppp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttppppp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttppppp;
}
