function setAjaxElementValue(idElement,strURL,params, type, keyValue) {
		var xmlHttpReq = false;
		var self = this;

		oElement = document.getElementById(idElement);

		// Mozilla/Safari
		if (window.XMLHttpRequest) {
			self.xmlHttpReq = new XMLHttpRequest();
		}
		// IE
		else if (window.ActiveXObject) {
			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		self.xmlHttpReq.open('POST', strURL, true);
		self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');

		self.xmlHttpReq.onreadystatechange = function() {
			if (self.xmlHttpReq.readyState == 4) {
				if(type == 'fck') {
					updateFckValue(self.xmlHttpReq.responseText,idElement);
				} else if((type == 'div') || (type == 'script')) {
					updateTextValue(self.xmlHttpReq.responseText,idElement);
				} else if((oElement.type == 'text') || (oElement.type == 'textarea')) {
					updateTextValue(self.xmlHttpReq.responseText,idElement);
				} else if(oElement.type == 'select-one') {
					updateSelectOptions(self.xmlHttpReq.responseText,idElement,keyValue);
				}
			}
		}
		self.xmlHttpReq.send(params);
	}

function updateTextValue(str,idElement){
		document.getElementById(idElement).innerHTML = str;
	}