function displayUserMessages() {
	pn_um = document.getElementById("user_messages");
	pn_um.onclick = function () {
		fadeElement(pn_um,10,100);
	}
	setTimeout('fadeElement(pn_um,10,100);', 15000);
}
function displayUserWarnings() {
	pn_uw = document.getElementById("user_warnings");
	pn_uw.onclick = function () {
		fadeElement(pn_uw,10,100);
	}
	setTimeout('fadeElement(pn_uw,10,100);', 15000);
}
function displayUserErrors() {
	pn_ue = document.getElementById("user_errors");
	pn_ue.onclick = function () {
		fadeElement(pn_ue,10,100);
	}
	setTimeout('fadeElement(pn_ue,10,100);', 15000);
}
function fadeElement(el, step, msecs) {
	var to = 0;
	if (navigator.appName.indexOf("Netscape")!=-1&&parseInt(navigator.appVersion)>=5) {
		if(parseInt(document.getElementById(el.id).style.MozOpacity) == 0) return;
		step = step/100;
		step = parseInt(step * 100)/100;
		for(i = 1; i > 0; i = parseInt((i - step)*100)/100) {
			to = to + msecs;
			self.setTimeout('document.getElementById("' + el.id + '").style.MozOpacity = ' + i + ';',to);
		}
		to = to + msecs;
		self.setTimeout('document.getElementById("' + el.id + '").style.display = "none";',to);
	} else if (navigator.appName.indexOf("Microsoft")!=-1&&parseInt(navigator.appVersion)>=4) {
		if(el.filters.alpha.opacity == 0) { return; }
		for(i = 100; i > 0; i = parseInt((i - step)*100)/100) {
			to = to + msecs;
			setTimeout('document.getElementById("' + el.id + '").filters.alpha.opacity = ' + i + ';',to);
		}
		to = to + msecs;
		self.setTimeout('document.getElementById("' + el.id + '").style.display = "none";',to);
	}
}
