// JavaScript Document

var debug = new Object();
var property_list = null;

debug.listProp = function(obj){
	for (prop in obj){
	  property_list += "<br />" + prop ;
	}
	document.write(property_list);
}
debug.listProp2 = function(obj){
	for (prop in obj){
	  property_list += "<br /><font color='red'><b>Property:  </b></font>" + prop + " <font color='blue'><b>Type:  </b></font>" +debug.type(prop);
	}
	document.write(property_list);
}

debug.isdefined = function(object, variable){
	alert(typeof(eval(object)[variable]) != 'undefined');
}

debug.type = function(value){
	return typeof(value);
}