﻿function extractNodes(pNode){
	if(pNode.nodeType == 3)
		return null;
	var node,nodes = new Array();
	for(var i=0;node= pNode.childNodes[i];i++){
		if(node.nodeType == 1)
			nodes.push(node);
	}
	return nodes;
}

function getNextSibling(startBrother){
	var endBrother = startBrother.nextSibling;
	while(endBrother!=null && endBrother.nodeType!=1){
		endBrother = endBrother.nextSibling;
	}
	return endBrother;
}
