function check_blank(catid) 
	{	
	
	var resp;	
		strURL="processajax.php?catid="+catid;
		
//		document.write(strURL);
		
		
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {	
					resp=req.responseText;
					//alert(resp);
					
						document.getElementById('dv_img').innerHTML=req.responseText;						
						//alert(req.responseText);
						//document.getElementById(dv).innerHTML="111";
						//alert(dv);
						//var div_chlng="div_chlng"+dv_id;
                       //var frmcheck="frmcheck"+dv_id;

		   
						
						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
			
			//alert(req.responseText);
		//return resp;
		}
		
	}
function check_paging(PageNo,make,model,yrfrom,yrto,prcfrom,prcto,sta,zip,fuel)  
	{	
	
 
	var resp;	
		strURL="findcar_submit_new.php?start="+PageNo+"&make="+make+"&mdl="+model+"&yrfrom="+yrfrom+"&yrto="+yrto+"&prcfrom="+prcfrom+"&prcto="+prcto+"&sta="+sta+"&zip="+zip+"&fueltype="+fuel;
	
//	alert(strURL);
//		document.write(strURL);
		
		
		var req = getXMLHTTP();
		
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {	
					resp=req.responseText;
						
						document.getElementById('display_area').innerHTML=req.responseText;
						//document.getElementById(dv).innerHTML=req.responseText;						
						//alert(req.responseText);
						//document.getElementById(dv).innerHTML="111";
						//alert(dv);
						//var div_chlng="div_chlng"+dv_id;
                       //var frmcheck="frmcheck"+dv_id;

		   
						
						
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
			
			//alert(req.responseText);
		//return resp;
		}

	}
	
	function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				req = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
	}
	