<!--  // hide the code
/**** debugging function used to assist in debugging javascript.****
***** (i.e var myHistory = document.getElementById("history")) *****/
function writeHistory(object, message){
    if(!object || !object.parentNode || !object.parentNode.getAttribute) return;
	var historyDiv = document.getElementById('history');
	if(!historyDiv){
		var historyDiv = document.createElement('DIV');
		historyDiv.id = "history";
		document.body.appendChild(historyDiv);
	}
    
    if(historyDiv){
        historyDiv.style.display = "block";
        historyDiv.appendChild(document.createTextNode(object.id+': '+message));
        historyDiv.appendChild(document.createElement('BR'));
        historyDiv.scrollTop += 50;
        }
}
//  done hiding the code -->
