dev=new function()
{
	this.logobj=false;
	//this.logarr=array();
	
	this.log=function(txt)
	{
		if (dev.logobj == false)
		{
			var obj=document.createElement('div');
			obj.style.position='absolute';
			obj.style.overflow='auto';
			obj.style.width='200px';
			obj.style.height='300px';
			obj.style.backgroundColor='#000';
			obj.style.color='#fff';
			obj.style.textAlign='left';
			obj.style.fontSize='10px';
			obj.style.fontFamily='Courier';
			
			document.getElementsByTagName('body')[0].appendChild(obj);
			
			dev.logobj=obj;
		}
		
		if (dev.logobj)
		{
			dev.logobj.appendChild(document.createTextNode(txt));
			dev.logobj.appendChild(document.createElement('br'));
		}
		else
		{
			alert('there is no devlog object defined\n\n'+txt);
		}
	}
}
