function clearElement(el) {
	var nodes = el.childNodes;
	for(i in nodes) {
		if(typeof(nodes[i]) == "object") {
			el.removeChild(nodes[i]);
		}
	}
}