// JavaScript Document
   $(document).ready(function() {
            $(".dropdown dt ").click(function() {
                $(".dropdown dd ul").toggle();
            });
                        
            $(".dropdown dd ul li ").click(function() {
                var text = $(this).html();
                $(".dropdown dt a span").html(text);
                $(".dropdown dd ul").hide();
              
			   $("#result").html(getSelectedValue("sample"));
			  document.getElementById("viewSol").style.display =  "none"
			  
            });
			
		
            function getSelectedValue(id) {
                return $("#" + id).find("dt a div.value").html();
				 //  return $("#" + id).find("dt li").attr("id");
				
            }

            $(document).bind('click', function(e) {
                var $clicked = $(e.target);
                if (! $clicked.parents().hasClass("dropdown"))
                    $(".dropdown dd ul").hide();
            });


        });
   
   
   
   
   

        $(document).ready(function() {


            $(".dropdown2 dt ").click(function() {
                $(".dropdown2 dd ul").toggle();
            });
                        
            $(".dropdown2 dd ul li ").click(function() {
                var text = $(this).html();
                $(".dropdown2 dt a span").html(text);
                $(".dropdown2 dd ul").hide();
              
			   $("#result").html(getSelectedValue("sample"));
			  
			  
			 
			  document.getElementById("viewSol").style.display =  "none"
			  
            });
			
		
            function getSelectedValue(id) {
                return $("#" + id).find("dt a div.value").html();
				 //  return $("#" + id).find("dt li").attr("id");
				
            }

            $(document).bind('click', function(e) {
                var $clicked = $(e.target);
                if (! $clicked.parents().hasClass("dropdown2"))
                    $(".dropdown2 dd ul").hide();
            });


        });
 
