function loadPage(path, queryString, divID,returnFunction) {
	if (queryString == null) {
		queryString = "";
	}
	var xmlHttpReq;
	try {
		xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
		try {
			xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			try {
				xmlHttpReq = new XMLHttpRequest();
			}
			catch (e) {
			}
		}
	}
	try {
		if (false) {
			if(divID!="") document.getElementById(divID).innerHTML="<img src='../templates/i/loading2.gif'>";
			xmlHttpReq.open("GET", path + "?" + queryString, true);
		}
		else {
			if(divID!="") document.getElementById(divID).innerHTML="<img src='../templates/i/loading2.gif'>";
			xmlHttpReq.open("POST", path, true);
			xmlHttpReq.setRequestHeader("Method", "POST " + path + " HTTP/1.1");
			xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlHttpReq.send(queryString);
		}
		xmlHttpReq.onreadystatechange =
		function() {
			if ((xmlHttpReq.readyState == 4)) {
				if (xmlHttpReq.status == 200) {
				    //returnFunction(xmlHttpReq.responseText,divID);
				    if(divID!='') 
					{
						document.getElementById(divID).innerHTML=xmlHttpReq.responseText;
						if(document.getElementById('chkItools')!="undefined"){
						    if (document.getElementById('chkItools')!=null){
						    if (document.getElementById('chkItools').checked == false) 
						    {
							    $('.link-itool').hide();
							    $('.div-itool').hide();
						    }
						    }
						}
					}
				    if(typeof returnFunction!="undefined"){
			            eval(returnFunction);
			        }
				}
			}
		};
	}
	catch (e) {
	}
}

function loadPageAnchor(anchorName, path, queryString, divID,returnFunction) {
	if (queryString == null) {
		queryString = "";
	}
	var xmlHttpReq;
	try {
		xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
		try {
			xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			try {
				xmlHttpReq = new XMLHttpRequest();
			}
			catch (e) {
			}
		}
	}
	try {
		if (false) {
			if(divID!="") document.getElementById(divID).innerHTML="<img src=../templates/i/loading2.gif>";
			xmlHttpReq.open("GET", path + "?" + queryString, true);
		}
		else {
			if(divID!="") document.getElementById(divID).innerHTML="<img src=../templates/i/loading2.gif>";
			xmlHttpReq.open("POST", path, true);
			xmlHttpReq.setRequestHeader("Method", "POST " + path + " HTTP/1.1");
			xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlHttpReq.send(queryString);
		}
		xmlHttpReq.onreadystatechange =
		function() {
			if (xmlHttpReq.readyState == 4) {
				if (xmlHttpReq.status == 200) {
				    //returnFunction(xmlHttpReq.responseText,divID);
				    if(divID!='') 
					{
						document.getElementById(divID).innerHTML=xmlHttpReq.responseText;
						location.href = "#" + anchorName
						if(document.getElementById('chkItools')!="undefined"){
						    if (document.getElementById('chkItools')!=null){
						if (document.getElementById('chkItools').checked == false) 
						{
							$('.link-itool').hide();
							$('.div-itool').hide();
						}
							}}
					}
				    if(typeof returnFunction!="undefined"){
			            eval(returnFunction);
			        }
				}
			}
		};
	}
	catch (e) {
	}
}

