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

<br>
/**

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

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

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

<br>
&#160;&#160;while( next_node
<br>
&#160;&#160;&#160;&#160;&amp;&amp; (next_node.nodeType != Node.ELEMENT_NODE) )