function dout(elem) {
	var str = '';
	for(i in elem) {
		str += i+': '+elem[i]+"\n";
	}
	alert(str);
}

