
<!-- 
// Get the HTTP Object
function getsboxHTTPObject(){
   if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP");
   else if (window.XMLHttpRequest) return new XMLHttpRequest();
   else {
      alert("Your browser does not support AJAX.");
      return null;
   }
}   
 
// Change the value of the outputText field
function sboxOutput(){

if( sboxhttpObject.readyState<4)
{
	document.getElementById('middle_').innerHTML = "Loading....";
}
    if( sboxhttpObject.readyState == 4){
	//alert( httpObject.responseText);
        //document.getElementById('middle_').value = httpObject.responseText;
		document.getElementById('search_box_ds').innerHTML =  sboxhttpObject.responseText;
    }
 
}
 
// Implement business logic    
function sbox_getvals(){    
    sboxhttpObject = getsboxHTTPObject();
    if ( sboxhttpObject != null) {

//alert("test");

	var srchbx_val= "searchbox.php?ax_cat=";
	srchbx_val+=document.getElementById('lst_cat').value;
	srchbx_val+="&ax_subcat=";
	srchbx_val+=document.getElementById('lst_subcat').value;
	srchbx_val+="&ax_subcat2=";
	srchbx_val+=document.getElementById('lst_subcat2').value;
	srchbx_val+="&ax_subcat3=";
	srchbx_val+=document.getElementById('lst_subcat3').value;
	srchbx_val+="&ax_cmp=";
	srchbx_val+=document.getElementById('lst_cmp').value;
	srchbx_val+="&ax_brand=";
	srchbx_val+=document.getElementById('lst_brnds').value;
	//snd+="&ax_com=";
	//snd+=document.getElementById('1st_pcommunity').value;
	/*
	snd+="&ax_mr_stat=";
	snd+=document.getElementById('lst_mar_status').value;
	snd+="&Age1=";
	snd+=document.getElementById('lst_frmage').value;
	snd+="&Age2=";
	snd+=document.getElementById('lst_toage').value;
	snd+="&ax_community=";
	snd+=document.getElementById('1st_pcommunity').value;
	snd+="&ax_phto=";
	snd+=document.getElementById('phto_reqd').checked;
	
	
	*/
	
	
	//alert(snd);
	//alert(document.getElementById('inputText').value);
         sboxhttpObject.open("GET",srchbx_val, true);
		//httpObject.open("GET", "searchresult.php?ax_br_grom="+document.getElementById('lst_srch_br_gr').value, true);		
         sboxhttpObject.send(null); 
         sboxhttpObject.onreadystatechange = sboxOutput;
    }
}
 
var  sboxhttpObject = null;





 
 


//-->
