﻿// ----------------------------------------------------------------------
// WSDebug.js
//
// Western Standard Translation - JavaScript tracing and debugging functions and variables.
//
// (c) 2009 Western Standard Translation.  All rights reserved.
// ----------------------------------------------------------------------

// 0 = No tracing.  9 = maximum tracing.
var _iTraceLevel = 0;

if (_iTraceLevel >= 9)  {
	alert("WSTrace.js - Begin");
	// Document.write("WSTrace.js - Begin");
}

function WSTrace(iLevel, sMsg)
{
	if (iLevel <= _iTraceLevel)  {

		// ToDo: Store the tracing in an array and add a call to be able to display the array OR
		// write the tracing to a separate HTML page.  DK 7-2-09.
		alert(sMsg);
		// Document.write(sMsg);
	}
}

WSTrace(9, "WSTrace.js - End");

