function WOpen(name,url,w,h,s,r)
{
	return(window.open(url,name,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+s+",resizable="+r+",fullscreen=no,channelmode=no,width="+w+",height="+h));
}



function js_dump(obj,full)
{
	if(typeof(obj)=="string")
	{
		name=obj;
		obj=eval(obj);
	}
	else
		name="UNDEFINED";
	res="<b>Dump of "+obj+"</b><br>\n";
	for(s in obj)
	{
		if(name=="UNDEFINED")
			res+=s;
		else
		{
			nobj=name+"."+s;
			res+="<a href='javascript:opener.js_dump(\""+nobj+"\",1)'>"+s+"</a>";
		}
		if(full)
			try {
				o=eval("obj."+s);
				res+=" <font color='green'>["+typeof(o)+"]</font>";
				res+=" <font color='red'>"+o+"</font>";
			} catch(e) {
				res+=" <font color='blue'>"+s+"</font>";
			};
		res+="<br>\n";
	}
	w=WOpen("dump","",400,600,"yes","yes");
	w.document.open();
	w.document.write(res);
	w.document.close();
}

