


	function displayAndSetFieldValue(sectionId, displayNameTdId, inputTdId, inputId, inputName, path, parameters, onCompletionFunction){
		var httpObject;

		if (window.XMLHttpRequest) { // Mozilla, Safari, ...
			httpObject = new XMLHttpRequest();
			if (httpObject.overrideMimeType) {
				httpObject.overrideMimeType('text/xml');
			}
		} else if (window.ActiveXObject) { // IE
			try {
				httpObject = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					httpObject = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}

		if (httpObject) {
			path += "?";
			path += "inputId="+inputId+"&";
			path += "inputName="+inputName;

			for( key in parameters ){
				path += "&"+key+"="+parameters[key];
			}

			if( sectionId != null ){
				displayAjaxWaiting(sectionId, true);
			}

			httpObject.open("GET", path, true);
			httpObject.send('');
			httpObject.onreadystatechange = function() {
				if( httpObject.readyState == 4 ){
					document.getElementById(displayNameTdId).style.display = "";
					document.getElementById(inputTdId).style.display = "";
					if( httpObject.status == 200 ){
						document.getElementById(inputTdId).innerHTML = httpObject.responseText;
						if( onCompletionFunction !== undefined ){
							eval(onCompletionFunction);
						}
					} else{
						document.getElementById(inputTdId).innerHTML = "Error! Unable to generate";
					}

					if( sectionId != null ){
						displayAjaxWaiting(sectionId, false);
					}
				}
			}
			return true;
		} else {
			return false;
		}
	}





	function displayAndSetSection(originSectionId, destinationDivId, path, parameters, onCompletionFunction){
		var httpObject;

		if (window.XMLHttpRequest) { // Mozilla, Safari, ...
			httpObject = new XMLHttpRequest();
			if (httpObject.overrideMimeType) {
				httpObject.overrideMimeType('text/xml');
			}
		} else if (window.ActiveXObject) { // IE
			try {
				httpObject = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					httpObject = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
		}

		if (httpObject) {

			var firstElement = true;
			for( key in parameters ){
				if( firstElement ){
					path += "?";
					firstElement = false;
				} else{
					path += "&";
				}
				path += key+"="+parameters[key];
			}

			if( originSectionId != null ){
				displayAjaxWaiting(originSectionId, true);
			}

			httpObject.open("GET", path, true);
			httpObject.send('');
			httpObject.onreadystatechange = function() {
				if( httpObject.readyState == 4 ){
					document.getElementById(destinationDivId).style.display = "";
					if( httpObject.status == 200 ){
						document.getElementById(destinationDivId).innerHTML = httpObject.responseText;
						if( onCompletionFunction !== undefined ){
							eval(onCompletionFunction);
						}
					} else{
						document.getElementById(destinationDivId).innerHTML = "Error! Unable to generate";
					}

					if( originSectionId != null ){
						displayAjaxWaiting(originSectionId, false);
					}
				}
			}
			return true;
		} else {
			return false;
		}
	}









