 function DropDownList( Type , obj , childobj , url , param )
 {
	this.Type = Type;	
	this.obj  = obj;
	this.childobj = childobj;
	this.Bind=function(  ){
		var paramx = param + obj.options[obj.selectedIndex].value;
		//location.href=url+"?" + paramx;
		var myAjax = new Ajax.Request(
										url,
										{method: 'get', parameters: paramx ,asynchronous:false 								
										  , onComplete: function(originalRequest)
											{
											  
												//childobj.disabled = false;
												 var XmlDoc = originalRequest.responseXML;
												
												 var Items = XmlDoc.getElementsByTagName( "Types" )[0].childNodes;
												 
													 if ( Items != null)
													 {
														
														 var opcount = childobj.options.length;
														
														 for ( var i = 0 ; i < opcount ; i ++ )
														 {
															 childobj.remove( 0 );
														 }			 
														
														 for ( i =0 ; i < Items.length ; i ++ )
														 {
															var oOption = document.createElement('option');
															oOption.text = Items[i].childNodes[1].childNodes[0].nodeValue;
															oOption.value = Items[i].childNodes[0].childNodes[0].nodeValue;
															childobj.options[childobj.options.length] = oOption;
															//alert(Items.length);
															try
															{
																if ( value == oOption.value )
																	childobj.options[childobj.options.length-1].selected = true;
															}
															catch ( e )
															{

															}
														 }
													 }
													
											}
										  ,onLoaded: function()
										  {
											
										  }
										  ,onFailure: function()
										  {
											 alert('error');
										  }
										}
									);		
		};	
 }