function new_window(){  
    var aHTMLTags = new Array();
    //Create Array of All HTML Tags
    var aHTMLTags=document.getElementsByTagName("a");
    //Loop through all tags using a for loop
    for (i=0; i<aHTMLTags.length; i++) {
      //Get all tags with the specified class name.
      if (aHTMLTags[i].className=="postlink") {
        //Place any code you want to apply to all
        //pages with the class specified.
        //In this example is to “display:none;” them
        //Making them all dissapear on the page.
        aHTMLTags[i].setAttribute("target", "_blank");
      }
  }
} 
