var cReq;
var ajaxChatObj;
var chatNewMSGsWindowID;

ajaxChatComm = function() {

	this.sendAndLoadChat = function(urlParam,onLoadOKFunction,userDefObj) 
	{
		this.onLoadOKCallBack=onLoadOKFunction;
		this.userDefObj=userDefObj;
		
		cReq = new comRequest();

		url = "/api/chat/de/" + urlParam;
		dataStr = "";

		cReq.sendAndLoad(url, dataStr, this.onLoadOK, this.onLoadNOK);

	};

	this.onLoadOK = function(responseText) 
	{
		parent.ajaxChatObj.onLoadOKCallBack(responseText,parent.ajaxChatObj.userDefObj);
	};

	this.onLoadNOK = function(requestObj) 
	{
		//alert("OnLoad Error:HTTP-Status:" + requestObj.status + "\n ResponseText:\n" + requestObj.responseText);
	};

};







