function CM_WEBCOMPONENT_MODELCONTEST(strName) {
	this.strName = strName;
	this.objContentHttpRequest = new DHL.NET.HTTPREQUEST()
	this.blnChanging = false;
	this.objResponseContainer = null;
	
	var me = this;
	
	CM_WEBCOMPONENT_MODELCONTEST.prototype.setResponseContainer = function setResponseContainer(obj) {
		this.objResponseContainer = obj;
	}
	
	CM_WEBCOMPONENT_MODELCONTEST.prototype.send = function send(objForm) {
		if(!this.blnChanging) {
			this.blnChanging = true;

			var blnError = false;
			var objUrlFavorite = new DHL.NET.URL.getCurrent();

			strAttributes = "frmName=" + this.strName + "&" +
				"modelId=" + objForm["modelId"].value + "&" + 
				"contestId=" + objForm["contestId"].value
			;

			this.objContentHttpRequest.open('POST', objUrlFavorite, true);

			this.objContentHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			this.objContentHttpRequest.setRequestHeader('Content-length', strAttributes.length);
			this.objContentHttpRequest.setRequestHeader('Connection', 'close');

			this.objContentHttpRequest.onreadystatechange(function() {
				CM_WEBCOMPONENT_MODELCONTEST.receive();
			});
			this.objContentHttpRequest.send(strAttributes);
			me.objResponseContainer.innerHTML = "Please wait ...";
		}
	}

	CM_WEBCOMPONENT_MODELCONTEST.receive = function receive() {
		if(me.objContentHttpRequest.getReadyState() == 4	&& me.objContentHttpRequest.getStatus() == 200) {
			if(me.objContentHttpRequest.getResponseText()){
				me.blnChanging = false;
				if(me.objContentHttpRequest.getResponseText() == 'ok') {
					me.objResponseContainer.innerHTML = "Thanks for voting";
				}
			}
		}
	}
	
}