  // this function is needed to work around 
  // a bug in IE related to element attributes
  function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  } 
function expandcollapse (faqid) { 
   whichfaq = document.getElementById(faqid); 
   
   if (whichfaq.className=="faqshown") { 
      whichfaq.className="faqhidden"; 
   } 
   else { 
      whichfaq.className="faqshown"; 
   } 
} 
function collapse (faqid) { 
   whichfaq = document.getElementById(faqid); 
   
   if (whichfaq.className=="faqshown") { 
      whichfaq.className="faqhidden"; 
   } 
   else { 
      whichfaq.className="faqhidden"; 
   } 
} 