 {

<br>
&#160;&#160;&#160;&#160;next_node = next_node.previousSibling;
<br>
&#160;&#160;}&#160;&#160;// endwhile
<br>

<br>
&#160;&#160;return next_node;
<br>
&#160;&#160;
<br>
}
<br>

<br>
/**

<br>
 *
<br>
 * firstChildElement 
<br>
 * 
<br>
 * @param ( node ) node object for which you are looking for the first child element node
<br>
 *
<br>
 * @return ( node) next sibling or "null"

<br>
 */
<br>
 
<br>
function firstChildElement( node ) {
<br>

<br>
&#160;&#160;var next_node = node.firstChild;
<br>

<