function changeTags(n, disp) {                  // n is a Node
    if (n.nodeType == 1 /*Node.ELEMENT_NODE*/)  // Check if n is an Element
        if (n.id != null)
            if (n.id.substr(0,7) == "noprint")
                n.style.display = disp;
    var children = n.childNodes;                // Now get all children of n
    for(var i=0; i < children.length; i++) {    // Loop through the children
        changeTags(children[i], disp);            // Recurse on each one
    }
}

function chgImg(imgField,newImg) {
   if (document.images) {
      document[imgField].src= eval(newImg+ ".src")
   }
}

function goPrint(){
   changeTags(document, "none");
   window.print();
   changeTags(document, "block");
}
