function Logger (div, level)
{
	this.Div = div;
	this.Level = level;
	
	this.FINE = 3;
	this.INFO = 5;
	this.WARNING = 7;
	this.ERROR = 9;

	this.Div.style.fontSize = "small";
	
	this.log = function (msg, level)
	{
		if (level >= this.Level)
		{	this.Div.innerHTML += msg+"<br/>";
		}
	}
	
	this.info = function (msg)
	{	msg = "INFO : " + msg;
		this.log (msg, this.INFO);
	}
	
	this.warning = function (msg)
	{	msg = "WARN : " + msg;
		this.log (msg, this.WARNING);
	}
	
	this.error = function (msg)
	{	msg = "ERRO : " + msg;
		this.log (msg, this.ERROR);
	}
	
	this.fine = function (msg)
	{	msg = "FINE : " + msg;
		this.log (msg, this.FINE);
	}
	
	this.show = function (bool)
	{
		if (bool) 	this.Div.style.display="block";
		else		this.Div.style.display="none";
	}
}