function addSubscriber() {
	var subscriberObj = new DSubscribeHandler();
	subscriberObj.addUser();
}
function DSubscribeHandler() {
	DXMLHttpRequestShell.call(this);
}

DSubscribeHandler.prototype = new DXMLHttpRequestShell();
DSubscribeHandler.constructor = DSubscribeHandler;

DSubscribeHandler.prototype.onLoad = function () {
	document.getElementById("subscribeResult").innerHTML = this.getResponseText();
	document.getElementById('subscribedMessage').style.display = 'block';
	setTimeout("document.getElementById('subscribedMessage').style.display = 'none'", 5000);
	document.getElementById('email').value = '';
	
	this.enable();
}
DSubscribeHandler.prototype.onError = function (code, message) {
	//
}
DSubscribeHandler.prototype.addUser = function() {
	this.init();
	mail = document.getElementById('email').value;
	this.fastPostUrl(BASE_URL + "subscribe.html", "email=" + mail);
}
DSubscribeHandler.prototype.enable = function() {
	RequestSentWin.close();
}

