<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title></title>
  </head>
  <body>
    // --------------------- Striper --------------------// function striper(parentElementTag, parentElementClass, childElementTag, styleClasses) { var i=0,currentParent,currentChild; // capability and sanity check if ((document.getElementsByTagName)&amp;&amp;(parentElementTag)&amp;&amp;(childElementTag)&amp;&amp;(styleClasses)) { // turn the comma separate list of classes into an array var styles = styleClasses.split(','); // get an array of all parent tags var parentItems = document.getElementsByTagName(parentElementTag); // loop through all parent elements while (currentParent = parentItems[i++]) { // if parentElementClass was null, or if the current parent's class matches the specified class if ((parentElementClass == null)||(currentParent.className == parentElementClass)) { var j=0,k=0; // get all child elements in the current parent element var childItems = currentParent.getElementsByTagName(childElementTag); // loop through all child elements while (currentChild = childItems[j++]) { // based on the current element and the number of styles in the array, work out which class to apply k = (j+(styles.length-1)) % styles.length; // add the class to the child element - if any other classes were already present, they're kept intact currentChild.className = currentChild.className+" "+styles[k]; } } } } } // ---------------------- PopUp ---------------------// function popup(url) { var Popped = window.open(url,"popup","status=no,width=400,height=400,scrollbars=yes,resizable=yes"); }
  </body>
</html>

