  function load(dest, output, id) {
            // alert("id = " + id);
            ima =  document.images[id];
            // alert("src = " + ima.getAttribute('src'));
            nr = ima.getAttribute('src').split('/');

            try {
                xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {
                    /* do nothing */
                    alert("exception" + e);
             }

            if(nr[nr.length-1]=='expanded.gif'){
                ima.setAttribute('src','images/collapsed.gif');

		xmlhttp.onreadystatechange = function () {
                // alert("readyState = " + xmlhttp.readyState + " output = " + output);
        		if (xmlhttp.readyState == 4) {
        	// alert("status = " + xmlhttp.status);
                           if (xmlhttp.status == 200) {
                              document.getElementById(output).innerHTML ="";
                           }
                       }
        	}
            } else {
              ima.setAttribute('src','images/expanded.gif');

              xmlhttp.onreadystatechange = function () {
              //   alert("readyState = " + xmlhttp.readyState + " output = " + output);
                 if (xmlhttp.readyState == 4) {
             //    alert("status = " + xmlhttp.status);
                   if (xmlhttp.status == 200) {
                  // alert("response - " + xmlhttp.responseText);
                      document.getElementById(output).innerHTML =xmlhttp.responseText;
                   }
                 }
               }
            }
            xmlhttp.open("GET", dest);
            xmlhttp.send(null);
	}