  
	    
  function EnqueryLocation(DD_City,DD_Location)
		{
		  
		     var city=document.getElementById('DD_City').value;
		    
		     document.getElementById('hdnCityName').value=city;
		     _DropDownObject=DD_Location;
		     var listt=document.getElementById(_DropDownObject);listt.options.length = 0 ; 
		     listt.options[listt.options.length]=new Option("Loading...","0");
			
			 MobileLocator.EnqueryLocation(city,EnqueryLocation_CallBack);
	    }
	     function wrapLocation1()
	    {
			//document.getElementById('hdnProduct').value=document.Form1.DD_Product.options[document.Form1.DD_Product.selectedIndex].value;	  
			document.getElementById('hdnLocation1').value=document.Form1.DD_Location1.options[document.Form1.DD_Location1.selectedIndex].value;	  
			//alert(document.getElementById('hdnLocation').value);
	    }
	     function wrapLocation()
	    {
			//alert('');
			document.getElementById('lblsubmit').style.display='block';
			document.getElementById('btn_Submit').style.display='none';
			
			document.getElementById('hdnLocation').value=document.Form1.DD_Location.options[document.Form1.DD_Location.selectedIndex].value;	  
			MobileLocator.MobileNO_Dealer(document.getElementById('DD_City').value,document.getElementById('hdnLocation').value,MobileNO_Dealer_CallBack);
	    }
	     function MobileNO_Dealer_CallBack(response) 
		{
		//alert(response.value);
			if(response.value!="")
			{
				document.getElementById('hdnDealerContactNo').value=response.value;
			}
			document.getElementById('lblsubmit').style.display='none';
			document.getElementById('btn_Submit').style.display='block';
		}
	     function dealerLocation1(DD_City1,DD_Location1)
		{
		    //var prod = document.getElementById('DD_Product').value;
		     //var state=document.getElementById('DD_State').value;
		     var city=document.getElementById('DD_City1').value;
		     //document.getElementById('hdnProduct').value=prod;
		    // document.getElementById('hdnState').value=state;
		     document.getElementById('hdnCityName1').value=city;
		     _DropDownObject=DD_Location1;
		     var listt=document.getElementById(_DropDownObject);listt.options.length = 0 ; 
		     listt.options[listt.options.length]=new Option("Loading...","0");
			 //alert('sds');
			 MobileLocator.ACDealerLocation(city,dealerLocation1_CallBack);
	    }
	    function dealerLocation1_CallBack(response) 
		{
		
		var objTable = response.value;
		var count=0;
		var NoOfRows;
		if(objTable.Rows==null)
		{
			count=1;
			NoOfRows=objTable.length;
		}

		else
		{
			count=2;
			NoOfRows=objTable.Rows.length;
		}

	   
		if(objTable == null || typeof(objTable) != "object") { return; } 
		 
		var list=document.getElementById(_DropDownObject);list.options.length = 0 ; 
		list.options[list.options.length]=new Option("Select","0");
		
			
		for(var i = 0 ; i < NoOfRows; i++) 
		{    
			
			if(count==1)
			{
				list.options[list.options.length] = new Option(objTable[i].LOCATION,objTable[i].LOCATION);
				
			}
			else
			{
				list.options[list.options.length] = new Option(objTable.Rows[i].LOCATION,objTable.Rows[i].LOCATION);
			}
		}

		//list.options[list.options.length]=new Option("All","A");
	
	}
	
	    function EnqueryLocation_CallBack(response) 
		{
		
		var objTable = response.value;
		var count=0;
		var NoOfRows;
		if(objTable.Rows==null)
		{
			count=1;
			NoOfRows=objTable.length;
		}

		else
		{
			count=2;
			NoOfRows=objTable.Rows.length;
		}

	   
		if(objTable == null || typeof(objTable) != "object") { return; } 
		 
		var list=document.getElementById(_DropDownObject);list.options.length = 0 ; 
		list.options[list.options.length]=new Option("Select Location","0");
		
			
		for(var i = 0 ; i < NoOfRows; i++) 
		{    
			
			if(count==1)
			{
				list.options[list.options.length] = new Option(objTable[i].LOCATION,objTable[i].LOCATION);
				
			}
			else
			{
				list.options[list.options.length] = new Option(objTable.Rows[i].LOCATION,objTable.Rows[i].LOCATION);
			}
		}

		//list.options[list.options.length]=new Option("All","A");
	
	}
