var DebugStr;

if ( window.location.search.search(/jsconsole=on/) != -1 )
{
	DebugStr = function(str) { console.log(str); };
}
else
{
	//no-op
	DebugStr = function(str) {};
}