function message(width,height,classname,content)
{
	var body = document.getElementsByTagName("body")[0];
	body.className = "bodyfullscreen";
	var html = document.getElementsByTagName("html")[0];
	html.className = "bodyfullscreen";
	
	var fullscreen = document.createElement("div");
	fullscreen.style.backgroundColor = "#000000";
	fullscreen.style.opacity="0.7";
	fullscreen.style.filter="alpha(opacity=70)";
	fullscreen.style.position="absolute";
	fullscreen.style.top="0px";
	fullscreen.style.left="0px";
	fullscreen.style.width="100%";
	fullscreen.style.height="100%";
	
	var thepopup = document.createElement("div");
	thepopup.className = classname;
	thepopup.style.width=width+"px";
	thepopup.style.height=height+"px";
	thepopup.style.position="absolute";
	thepopup.style.top="50%";
	thepopup.style.overflow="auto";
	thepopup.style.left="50%";
	thepopup.style.marginLeft="-" + (width/2) + "px";
	thepopup.style.marginTop="-" + (height/2) + "px";
	thepopup.innerHTML = content;
	
	thepopup.fullwin = fullscreen;
	thepopup.onclick = function() {body.removeChild(this.fullwin);body.removeChild(this);body.className = null;};
	
	
	body.appendChild(fullscreen);
	body.appendChild(thepopup);
}
