	    var _DropDownObject=null;
	   
	    
	    
	    
	    function wrapRcity()
	    {
			document.getElementById('hdnRCityName').value=document.supcontact.DD_RCity.options[document.supcontact.DD_RCity.selectedIndex].value;	  
			
			//alert(document.getElementById('hdnCityName').value);
	    }
	     function wrapcity()
	    {
			//document.getElementById('hdnCityName').value=document.supcontact.DD_City.options[document.supcontact.DD_City.selectedIndex].value;	  
			document.getElementById('hdnCityName').value=document.getElementById('DD_City').value;
			
			//alert(document.getElementById('hdnCityName').value);
	    }
		
		function wrapcity1()
	    {
			//document.getElementById('hdnCityName1').value=document.supcontact.DD_City_Branch.options[document.supcontact.DD_City_Branch.selectedIndex].value;	  
			document.getElementById('hdnCityName1').value=document.getElementById('DD_City_Branch').value;
			//alert(document.getElementById('hdnCityName1').value);
	    }
			
		
		
		
		function fillcity(DD_State,DD_City)
		{
		     //alert("fillcity");
		     var keyValue=document.getElementById('DD_State').value;
		     _DropDownObject=DD_City;
		     var listtt=document.getElementById(_DropDownObject);
			 listtt.options.length = 0 ; 
		     listtt.options[listtt.options.length]=new Option("Loading...","0");
			 Class1.fillCITY(keyValue,fillcity_CallBack);
	
		
	            
	         
	    }
		
	  
	   function fillcity_CallBack(response) 
		{
			
		//alert ("callback Opening department");
		
		var objTable = response.value;
		
		var count=0;
		var NoOfRows;
		if(objTable.Rows==null)
		{
			count=1;
			NoOfRows=objTable.length;
			//alert(NoOfRows);
		}

		else
		{
			count=2;
			NoOfRows=objTable.Rows.length;
			//alert(NoOfRows);
		}

	   
		if(objTable == null || typeof(objTable) != "object") { return; } 
		 
		var list=document.getElementById(_DropDownObject);list.options.length = 0 ; 
		list.options[list.options.length]=new Option("Select City","0");
			
		for(var i = 0 ; i < NoOfRows; i++) 
		{    
			if(count==1)
			{	
				list.options[list.options.length] = new Option(objTable[i].CITY,objTable[i].CITY);
				
			}
			else
			{
				list.options[list.options.length] = new Option(objTable.Rows[i].CITY,objTable.Rows[i].CITY);
			}
		}
	
	}
	
		
		//-------------------------------------------------------------------
		
		
		function fillcity1(DD_State_Branch,DD_City_Branch)
		{
		     var keyValue=document.getElementById('DD_State_Branch').value;
		     _DropDownObject=DD_City_Branch;
		     var listttt=document.getElementById(_DropDownObject);
			 listttt.options.length = 0 ; 
		     listttt.options[listttt.options.length]=new Option("Loading...","0");
			 Class1.fillCITY1(keyValue,fillcity1_CallBack);
			 
	            
	         //alert("openingDepartment");
	    }
		
	  
	   function fillcity1_CallBack(response) 
		{
			
		//alert ("callback Opening department");
		
		var objTable = response.value;
		
		var count=0;
		var NoOfRows;
		if(objTable.Rows==null)
		{
			count=1;
			NoOfRows=objTable.length;
			//alert(NoOfRows);
		}

		else
		{
			count=2;
			NoOfRows=objTable.Rows.length;
			//alert(NoOfRows);
		}

	   
		if(objTable == null || typeof(objTable) != "object") { return; } 
		 
		var list=document.getElementById(_DropDownObject);list.options.length = 0 ; 
		list.options[list.options.length]=new Option("Select City","0");
			
		for(var i = 0 ; i < NoOfRows; i++) 
		{    
			if(count==1)
			{	
				list.options[list.options.length] = new Option(objTable[i].CITY,objTable[i].CITY);
				
			}
			else
			{
				list.options[list.options.length] = new Option(objTable.Rows[i].CITY,objTable.Rows[i].CITY);
			}
		}
	
	}
	
		
		
		
	
	
	
	
	
	


	   
		
	
	
	
	
	
	
	
	
	
	