function expandcollapse (postid) { 

   var showid = postid + "a";
   
   whichpost = document.getElementById(postid); 
   showpost  = document.getElementById(showid);

   if (whichpost.className=="postshown") { 
      whichpost.className="posthidden";
      showpost.innerHTML="Read More..."; 
   } 
   else { 
      whichpost.className="postshown";
      showpost.innerHTML="Hide Post";
   } 

}

