var CKAjax =
{
	SendRequest : function (strRequestUrl, strContainerId)
	{
		var xmlHttpReq = false;
		var self = this;
		// Mozilla/Safari
		if (window.XMLHttpRequest) {
			self.xmlHttpReq = new XMLHttpRequest();
		}
		// IE
		else if (window.ActiveXObject) {
			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		self.xmlHttpReq.open('POST', strRequestUrl, true);
		self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		self.xmlHttpReq.onreadystatechange = function() {
			if (self.xmlHttpReq.readyState == 4) {
				self.FillContainer(strContainerId, self.xmlHttpReq.responseText);
			}
		}
		self.xmlHttpReq.send("");
	},
	SendRequest2 : function (strRequestUrl, strFieldId)
	{
		var xmlHttpReq = false;
		var self = this;
		// Mozilla/Safari
		if (window.XMLHttpRequest) {
			self.xmlHttpReq = new XMLHttpRequest();
		}
		// IE
		else if (window.ActiveXObject) {
			self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		self.xmlHttpReq.open('POST', strRequestUrl, true);
		self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		self.xmlHttpReq.onreadystatechange = function() {
			if (self.xmlHttpReq.readyState == 4) {
				self.SetFieldValue(strFieldId, self.xmlHttpReq.responseText);
			}
		}
		self.xmlHttpReq.send("");
	},
	FillContainer : function (strContainerId, strHtml)
	{
		document.getElementById(strContainerId).innerHTML = strHtml;
	},
	SetFieldValue : function (strFieldId, strHtml)
	{
		document.getElementById(strFieldId).value = strHtml;
	}
}