function getNextElement(elm) {
	var sib = elm.nextSibling;
	while (sib && sib.nodeType != 1) {
		sib = sib.nextSibling;
	}
	return sib;
}