// JavaScript Document
/*******************************************************************************************************************/
function debug(){
   var str = "Debug Values:<br><br>";
	if (ttest_in_progress)
		str += 'ttest started!';
	else
		str += 'ttest stopped!';

	str += "<pre>" + document.getElementById("ttestDiv").innerHTML +"</pre>" 
	debugMessage(str)
}
/*******************************************************************************************************************/
function debugMessage(msg){
	debugWindow = window.open("","debugWin","toolbar=no,resizable=yes,scrollbars,width=600,height=400");
	debugWindow.document.writeln(msg+'<br>')
	debugWindow.scroll(0,900000)
}
/*******************************************************************************************************************
 // this is a good debugging function for javascript 
function debug(msg){
    debugWindow = window.open("","debugWin","toolbar=no,resizable=yes,scrollbars,width=600,height=400");
    debugWindow.document.writeln(msg+'<br>')
    debugWindow.scroll(0,900000)
}
/*********************************************************************************************************************/