function odump(object, depth, max){
	depth = depth || 0;
	max = max || 12;

	if (depth > max)
		return false;

	var indent = "";
	for (var i = 0; i < depth; i++)
		indent += "    ";

	var output = "";
	for (var key in object){
		//if(object[key] == '') continue;
		if(key.match(/^[0-9]+$/)) output += "\n";
		output += "\t" + indent + key + ":";
		var n=0;
		for(var key2 in object[key]){
			if(typeof object[key] != "string")
				n++;
		}
		if(n>1) output+="\n";
		switch (typeof object[key]){
			case "object": output += odump(object[key], depth + 1, max); break;
			case "function": output += "function"; break;
			default: output += object[key]; break;
		}
		output += "\n";
	}
	return output;
}



