/* * * * * * * * * * * * * * * * * * *\
*                                     *
*  SPAN REMOVING JAVASCRIPT FUNCTION  *
*                                     *
*  Created By: Raven Morris           *
*  Created On: November 20th, 2008    *
*                                     *
*  Description:                       *
*                                     *
*    Any <span> with a class of       *
*    "js_remove" will be erased from  *
*    the HTML file.                   *
*                                     *
*    For use in conjunction with my   *
*    Obfuscate_Email() PHP function,  *
*    so copying and pasting does not  *
*    paste the invisible text.        *
*                                     *
\* * * * * * * * * * * * * * * * * * */


function spanRemover() {
   var all_spans = document.getElementsByTagName("span");
   for(var i = 0; i < all_spans.length; i++) {
      if(all_spans[i].className == 'js_remove') {
         all_spans[i].parentNode.removeChild(all_spans[i]);
         i--;
      }
   }
}


