/*---------------------------------------------------------------------------
 * debug.js
 *
 * diagnostic functions available only when _DEBUG is true.
 * 
 * Copyright (C) Triad Interactive 1997 All Rights Reserved 
 *
 *--------------------------------------------------------------------------*/

var _DEBUG = true;

// Evaluates the condition argument. If the result is false, 
// the function displays the diagnostic message

function assert( condition, message )
{
	if (_DEBUG == true && condition == false)
	{
		alert( "Assertion failed: " + message );
	}
}