function var_dump( objElement, intLimit, intDepth )
{
intDepth = intDepth?intDepth:0;
intLimit = intLimit?intLimit:1;
strReturn = '
';
for( property in objElement )
{
// Property domConfig isn't accesible
if( property != 'domConfig' )
{
strReturn += '- ' + property + ' (' + ( typeof objElement[property] ) + ')';
if ( typeof objElement[property] == 'number' || typeof objElement[property] == 'boolean' ) {
strReturn += ' : ' + objElement[property] + '';
}
if ( typeof objElement[property] == 'string' && objElement[property] ) {
strReturn += ':
' +
objElement[property].replace(//g, '>') + '
';
}
if ( typeof objElement[property] == 'object' && ( intDepth < intLimit ) ) {
strReturn += var_dump( objElement[property], intLimit, ( intDepth + 1 ) );
}
strReturn += ' ';
}
}
strReturn += '
';
if ( intDepth == 0 )
{
winpop = window.open( "", "", "width=800, height=600, scrollbars, resizable" );
winpop.document.write( '' + strReturn + '
' );
winpop.document.close();
}
return strReturn;
}
//javascript/2088