
var toolbox = "show";

function sajax_init_object() {
	var A;
   if(!window.XMLHttpRequest){	
	var msxmlhttp = new Array(
		'Msxml2.XMLHTTP.6.0',
		'Msxml2.XMLHTTP.5.0',
		'Msxml2.XMLHTTP.4.0',
		'Msxml2.XMLHTTP.3.0',
		'Msxml2.XMLHTTP.2.0',
		'Msxml2.XMLHTTP.1.0',
		'Microsoft.XMLHTTP');
	for (var i = 0; i < msxmlhttp.length; i++) {
		try {
			A = new ActiveXObject(msxmlhttp[i]);
		} catch (e) {
			A = null;
		}
	}
    }
    else{
    	if(!A && typeof XMLHttpRequest != "undefined")
		A = new XMLHttpRequest();
        }
	return A;
}

var objuxml = sajax_init_object();




function loaddata(url,element){
  
  var thediv = document.getElementById(element);
  if (objuxml) {
      objuxml.open('GET', url, true);
      objuxml.onreadystatechange = function(){
  	if (objuxml.readyState == 4){
	    resp = objuxml.responseText;
	    if(resp != ""){ thediv.innerHTML = resp;
	    }else{ thediv.style.display = 'none';}
 	}
      
      };
      objuxml.send(null);
    
  }
}

