function insertAfter(parentNode,newNode, refNode){ if(refNode.nextSibling) parentNode.insertBefore(newNode,refNode.nextSibling) else parentNode.appendChild(newNode) }
if (refNode == null){ parentNode.insertBefore(newNode,parentNode.firstChild) }
function insertAfter( parentNode, newNode, refNode ){ refNode = refNode && refNode.nextSibling; parentNode.insertBefore( newNode, refNode ); }