function CM_WEBCOMPONENT_VIDEOINTERFACE_REPORT(strName) {
	var me = this;
	this.strName = strName;
	this.objFrom = null;
	this.objEmailHttpRequest = new DHL.NET.HTTPREQUEST();
	this.intTimeoutId = null;

	CM_WEBCOMPONENT_VIDEOINTERFACE_REPORT.prototype.setForm = function setForm() {
		this.objForm = objForm;
	}

	CM_WEBCOMPONENT_VIDEOINTERFACE_REPORT.prototype.onReportEmail = function onShareEmail(objForm) {
		if(objForm["message"].value == "" ) {
			alert("Please enter a message ");
		}
		else if(!this.blnChanging	) {
			var objUrlReportEmail = new DHL.NET.URL.getCurrent();

			//Validate Email Liste
			strAttributes = 
				"frmName=" + this.strName + "&" +
				"fromEmail=" + objForm["email"].value + "&" + 
				"message=" + objForm["message"].value;

			this.objEmailHttpRequest.open('POST', objUrlReportEmail, true);
			this.objEmailHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
			this.objEmailHttpRequest.setRequestHeader('Content-length', strAttributes.length);
			this.objEmailHttpRequest.setRequestHeader('Connection', 'close');
			this.objEmailHttpRequest.onreadystatechange(function() {
				me.onReportEmailStateChange();
			});
			this.objEmailHttpRequest.send(strAttributes);
			
			this.objForm = objForm;
			if(this.objForm["send"]) {
				this.objForm["send"].disabled = true;
			}
		}
	}

	CM_WEBCOMPONENT_VIDEOINTERFACE_REPORT.prototype.onSendCountDown = function onSendCountDown(intCurrentSecond) {
		if(intCurrentSecond <= 0) {
			me.objForm["send"].value = "Send";
			me.objForm["send"].disabled = false;
			clearInterval(me.intTimeoutId);
			me.intTimeoutId = null;
			
			document.getElementById(me.strName + "Success").style.display = "none";
			document.getElementById(me.strName + "Container").style.display = "block";
		}
		else {
			me.objForm["send"].value = "Send (" + intCurrentSecond + ")";
			setTimeout(function () {
				me.onSendCountDown(--intCurrentSecond);
			}, 1000);
		}
	}

	CM_WEBCOMPONENT_VIDEOINTERFACE_REPORT.prototype.onReportEmailStateChange = function onShareEmailStateChange() {
		objEmailHttpRequest = me.objEmailHttpRequest;

		if(objEmailHttpRequest.getReadyState() == 4	&& objEmailHttpRequest.getStatus() == 200) {
			if(objEmailHttpRequest.getResponseText()){
				me.blnChanging = false;
				if(objEmailHttpRequest.getResponseText() == 'ok') {
					me.intTimeoutId = setTimeout(function() {
						me.onSendCountDown(29)
					}, 1000);
					//alert('Your message has been received.');
					document.getElementById(me.strName + "Success").innerHTML = "<center>Your message has been sent.</center>";
					document.getElementById(me.strName + "Success").style.display = "block";
					document.getElementById(me.strName + "Container").style.display = "none";
					
					me.objForm["email"].value = "";
					me.objForm["message"].value = "";
				}
			}
		}
	}

}