		function show2(cid){
			thisdiv = document.getElementById(cid).style.display;
			var divall = document.getElementsByName("cust");
			for (var i = 0; i < divall.length; i++) {
				 if(divall[i].style)
				  {
				  	divall[i].style.display = "none";
				  }
			}
																
	if (thisdiv  == "none"){
		document.getElementById(cid).style.display  = 'block';
		//document.getElementById("image_"+cid).src  = "http://www.informationbuilders.com/applications/images/minus.gif";
		document.getElementById("image_"+cid).setAttribute("class", "minusbutton");
		// this way works in ie 6
		document.getElementById("image_"+cid).setAttribute("className", "minusbutton");
		requestCustInfo(cid);
	} else {
		document.getElementById(cid).style.display  = 'none';
		//document.getElementById("image_"+cid).src  = "http://www.informationbuilders.com/applications/images/plus.gif";
		document.getElementById("image_"+cid).setAttribute("class", "plusbutton");
		document.getElementById("image_"+cid).setAttribute("className", "plusbutton");
	}
		}
     
   var url = "/applications/loadcustomer.php?custid="; // The server-side script
  
  // This function is not being used at the moment, callback is being used instead
   function handleHttpResponse(custid) {  
    alert (http.responseText);
    alert(http.responseText);
    if (http.readyState == 4) {
          if(http.status==200) {
              var results=http.responseText;
          document.getElementById(custid).innerHTML = results;
          }
       }
    }
   function callback(custid){
   		//alert('in callback');
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
			 { 
			  document.getElementById(custid).innerHTML=xmlHttp.responseText 
			 } 
	 }
	  function requestCustInfo(custid) {     	     
	     // var sId = document.getElementById("txtCustomerId").value;
	     //alert ('in request cust info');
	    	createXMLHttpRequest(); //activate xmlhttp object
	     document.getElementById(custid).innerHTML = "Loading...";
	      xmlHttp.open("GET", url + custid, true);
	      xmlHttp.setRequestHeader("Content-type", "text/html");
				xmlHttp.onreadystatechange = function() { 
	        callback(custid); 
	   		 };
	
	      xmlHttp.send(null);
	  }
		function createXMLHttpRequest(){
			if (window.ActiveXObject){
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			else if (window.XMLHttpRequest){
				xmlHttp = new XMLHttpRequest();
			}
		}
