//SOME DEBUG FUNCTIONS

function error(message){
	//NOTICE I DISABLE EVENT PROCESSING ONCE AN ERROR IS RAISED
	alert("ERROR: "+message);
	document.onmousedown=null;
	document.onmousemove=null;
	document.onmouseup=null;
}//error

var PrintAccumulator="";

function println(value){
	PrintAccumulator += (value+"\n");
	printDone();
}//println

function print(value){
	PrintAccumulator += value;
}//print
