function doLog(mesg)
{
	// Set the false to true to get debugging messages
    if (false) 
    {
    	var logContainer = (top.opener != null && !top.opener.closed) ? top.opener.top : top;
    	
        if (!logContainer.logWindow)
        {
            logContainer.logWindow = top.open("about:blank", "logWindow");
        }
        
        if (!logContainer.logWindow.closed)
        {
        	if (false) {
	        	var now = new Date();
				var display = now.toLocaleString();        	
	        	if (mesg != "") {
	        		mesg = now + " " + mesg;
	        	}
        	}
        	mesg = mesg.replace(/</g, "&lt;");
        	mesg = mesg.replace(/>/g, "&gt;");
        	
        	logContainer.logWindow.document.writeln(mesg);
        	logContainer.logWindow.document.writeln("<br>");
        }
    }
} 


function dumpObject( obj )
{
  var str = "";
  
  if (!obj)
  {
     str += "n/a";
  }
  else
  {
	 str += obj.tagName;
	 str += "(";
	 if (obj.id)
	 {
	    str += "id=";
	    str += obj.id;
	    str += ",";
	 }
	 if (obj.className)
	 {
	 	str += "class=\"";
	 	str += obj.className;
	 	str += "\",";
	 }
	  
	 str += ")";
  }
    
  return str;
}




