// Helper DHTML library
// Debug object
// Code: Andrey Potekhin
// (c) Taitl

function DebugDevice()
{
	this.debug = 1	
	this.assert = function (condition, warning)
	{
		if(this.debug && !condition)
		{
			if(warning)
				i = confirm(warning + ' Debug?')
			else
				i = confirm('Assertion fault. Debug?')
			
			if(i)
				// Purposedly not defined to let you land here.
				happybug;
		}
	}
}

Debug = new DebugDevice()
