anchor.diff:     
      function tableTag(name, id) {
   
  -       var link = $('<a href="#" class="hidedetail"><img src="kr/static/images/tinybutton-hide.gif" align="absmiddle" border="0" width="45" height="15"></a>');
  +       var link = $('<a href="#" class="hidedetail"><img src="/kra-dev/kr/static/images/tinybutton-hide.gif" align="absmiddle" border="0" width="45" height="15"></a>');
          var tag = $('<th  class="subelementheader" align="left"></th>').html(name);
          link.prependTo(tag);
          tag = $('<tr></tr>').html(tag);
  
positive.code:         
          
       } else {
       alert("add q"+qid.attr("value"));
       
                   i++;
  
              var id = "item"+i;
              var tagId = "listcontrol"+i;
              var divId = "listcontent"+i;
              var item_text = qid.attr("value");
              var tag = $('<a style = "margin-left:2px;" ></a>').attr("id",tagId).html(item_text);
              var div = $('<div  class="hierarchydetail" style="margin-top:2px; "></div>').attr("id",divId);
         $(document).ready(function () {
              tag.click(
  					function()
  					{
  					    //alert ("click "+tagId);
  						$(".hierarchydetail:not(#"+divId+")").slideUp(300);
  						$("#"+divId).slideToggle(300);						
  					}
  				);
  		}); 		
  		    //var spantag = $('<span class="folder"></span>').html("test");
              var listitem = $('<li class="closed"></li>').attr("id",id).html(tag);
              tableTag(item_text, id).appendTo(div)
              div.appendTo(listitem);
              //spantag.prependTo(listitem);
              
              // need this ultag to show 'folder' icon.
  			var ultag = $('<ul></ul>');
              ultag.appendTo(listitem);
              
  
negative.code: }
     
     
       $(document).ready(function(){
          // initial state
              $("#HSdiv02b").hide();
          // toggle state
              $("#HScontrol02b").toggle(
                  function()
                  {
                      $("#HSdiv02b").slideDown(400);
                      $("#HScontrol02b").attr("src","/kra-dev/kr/static/images/tinybutton-hide.gif");
                  },
                  function()
                  {
                      $("#HSdiv02b").slideUp(200);
                      $("#HScontrol02b").attr("src","/kra-dev/kr/static/images/tinybutton-show.gif");
                  }
              );	
      });
  
   
       $(document).ready(function(){
          // initial state
              $("#HSdiv01").hide();
          // toggle state
              $("#HScontrol01").toggle(
                  function()
                  {
                      $("#HSdiv01").slideDown(400);
                      $("#HScontrol01").attr("src","/kra-dev/kr/static/images/tinybutton-hide.gif");
                  },
                  function()
                  {
                      $("#HSdiv01").slideUp(200);
                      $("#HScontrol01").attr("src","/kra-dev/kr/static/images/tinybutton-show.gif");
                  }
              );	
      });
  
   
     
     
     
      </script>