var Warning = Class.create({
	initialize: function(sElement) {
		this.element = $(sElement);
	},
	showMessage: function(sMessage){
		this.element.innerHTML = sMessage;
		this.element.show();
	},
	hideMessage: function(){
		this.element.hide();
		this.element.innerHTML = "";
	}
});

document.observe("dom:loaded", function() {
	if($('formMessage'))
		appWarning = new Warning('formMessage');
});

