function resize_iframe(frm){ 
	alert(frm.contentWindow.document.body);
	try { frm.style.height = (frm.contentWindow.document.body.scrollHeight+40)+"px"; } catch(e) {}
}

function dump_prop(o){
	var text ='';
	for (p in o) { 
		try { if(typeof o[p] != "function") text += p +" : "+ o[p] +"\n"; }  catch(e) { continue; }
	}
	return text;
}
function dump_func(o){
	var text ='';
	try { for (p in o) if(typeof o[p] == "function") { text += p +" : "+ o[p] +"\n"; } } catch(e) { return text; }
	return text;
}

function dump_props1(obj, obj_name) {
	var text = "";
	try { for (var i in obj) if(typeof obj[i] != "function") { text += obj_name + "." + i + " = " + obj[i] + "\n"; } } catch(e) { return text; }
	return text;
}

