function objectInspect(o, level)
{
	w = window.open('', 'debug');

	if (level == undefined)
	{
		w.document.write('<style>div {border-style:solid;border-width:1pt;margin-left:10pt;padding:2pt;} .v{display:block} .i{display:none}</style>');
		w.document.write('<scr'+'ipt>function d(a){a.className=a.className=="v"?"i":"v";}</scr'+'ipt>');
		w.document.write('<div class="v">'); 
	}
	else
		w.document.write('<div class="i">'); 

	if (o == undefined)
		w.document.write('undefined <br />');
	else if (typeof (o) == 'object')
		for (i in o)
			if (o[i] != undefined && typeof (o[i]) == 'object') 
			{
				if ((i != 'parentNode') && (i != 'parentElement') && (i != 'nextSibling') && 
					(i != 'previousSibling') && (i != 'ownerDocument') && (i != 'offsetParent') && 
					(i != 'ownerElement') && (i != 'document') && (i != 'namespaces') && (i != 'parentTextEdit'))
				{
					w.document.write('<p onclick="d(this.nextSibling);"><b>['+ i +'] = ' + o[i] +'</b></p>');
					v(o[i], 1);
				}
			}
			else if (typeof (o[i]) != 'function')
				w.document.write('<p>['+ i +'] = ' + o[i] +'</p>');

	w.document.write('</div>');
}