function jsdebugprint(thestring) {
	if(JS_DEBUG) {
		if(jQuery("#jsdebugbox").get(0) == undefined) {
			jQuery("body").after('<div id="jsdebugbox">debugbox</div>'); 
			jQuery("#jsdebugbox").css(
					{
						position: "fixed",
						top: "20px",
						right: "10px",
						"background-color":"white",
						"height":"300px",
						"overflow":"auto"
					}
					);
		}
		jQuery("#jsdebugbox").append("<br>"+thestring);
		jsdebugborder(jQuery("#jsdebugbox").get(0),"1px solid red");
	}
}
function jsdebugborder(obj,atr) {
	jQuery(obj).css({border:atr});
}
