	function show_dropdown_menu( id, class_name, max_height ){

	//When the dropdown options are first shown, set the height and overflow based on the height of the options
	//Keep track of the dropdown menu in a variable
	var variable_name="show_dropdown_menu_"+id;
	if( eval("typeof "+variable_name+"=='undefined'") ){
	
		//1
		//Hide the options to prevent the jumping effect from the height being changed from a larger to smaller height
		document.getElementById(id+"_outer").style.opacity="0.0";
		document.getElementById(id+"_outer").style.filter="alpha(opacity=0)";
	
		//Show or hide the menu
		document.getElementById( id ).className=class_name;

		//DEBUGGING
		//alert( document.getElementById(id+"_inner").offsetHeight+" > "+max_height );

		//2
		var inner_width=eval(document.getElementById(id+"_inner").offsetWidth);
		document.getElementById(id+"_outer").style.width=(inner_width)+"px";

		//If the inner div's height is greater than the max height, set the outer div's height to 100px and set the overflow to auto
		if( document.getElementById(id+"_inner").offsetHeight>max_height ){

			//Accommodate for the scrollbar by adding some width
			document.getElementById(id+"_outer").style.width=(inner_width+20)+"px";

			document.getElementById(id+"_outer").style.height=max_height+"px";
			document.getElementById(id+"_outer").style.overflow="auto";

		}
		
		//3
		if( document.getElementById(id+"_test_top")!=null ){
			
			//Determine whether or not the title width exceeds the inner width
			var title_width=eval(document.getElementById(id+"_title").offsetWidth);
			//alert(title_width+">"+inner_width+"="+document.getElementById(id+"_outer").style.width);
			if( title_width>inner_width ){
			
				var width=document.getElementById(id+"_outer").style.width.split("px");
				width=eval(width[0]);
				width-=1;
				
			}else{
			
				var width=title_width-3;
				
			}
			document.getElementById(id+"_test_top").style.width=width+"px";
			
		}
		
		//Record that the dropdown menu options size has been set
		eval( variable_name+"=true" );
		
		//3
		//Hide the options to prevent the jumping effect from the height being changed from a larger to smaller height
		document.getElementById(id+"_outer").style.opacity="1.0";
		document.getElementById(id+"_outer").style.filter="alpha(opacity=100)";
	
		//Show or hide the menu
		document.getElementById( id ).className=class_name;
	
	}else{
	
		//Show or hide the menu
		document.getElementById( id ).className=class_name;
	
	}
	
}
