
function dumpObjectProperties(obj, objName)
{
	//var obj = self;
	if (obj == null)
	{
		window.alert("Null object");
		return;
	}
	if (obj == undefined)
	{
		window.alert("Undefined object");
		return;
	}
	
	var dumpWin = window.open("","displayWindow","menubar=no,toolbar = no, width = 400,height = 500,scrollbars =yes,resizable=yes");

	var result = "";
	
	objName = "<span style = 'color:darkblue'>" + objName + "</span>";
	dumpWin.document.open();
	dumpWin.document.write("<table style='border: 1px solid black'>")
	for (var i in obj)
	{ 
		dumpWin.document.write("<tr><td style='border-bottom: 1px solid black;border-top: 1px solid black;padding:2px;border-right: 1px solid gray;'>")
		dumpWin.document.write(objName + ".<b>" + i.toString() + "</b>");
		dumpWin.document.write("</td>")
		dumpWin.document.write("<td style='border-bottom: 1px solid black;border-top: 1px solid black;padding: 0px'>")
		if (obj[i] != undefined)
			dumpWin.document.write("" + obj[i]);// + i.toSource();//+ " = " + obj[i] + "\n" + "<br>";
		dumpWin.document.write("</td></tr>")
	}
	dumpWin.document.write("</table>")
	dumpWin.document.close();
}

function showProps(strValue)
{
	try
	{
		var object = eval(strValue);
		if (object != undefined)
			dumpObjectProperties(object, strValue);
	}
	catch(e)
	{}
}


function showWindowSample(url)
{
	window.open(url, 'sampleWindow', 'menubar=yes,toolbar = no, scrollbars = yes, status = yes, width = 400,height = 500 resizable=yes');
}