function changeDetails(theid){ 

var thearray = new Array("idone","idtwo", "idthree", "idfour", "idfive"); 

for(i=0; i<thearray.length; i++){ 

      if(thearray[i] == theid){ 

            document.getElementById(theid).style.display="block"; 

      }else{ 

            document.getElementById(thearray[i]).style.display="none"; 

      } 

   } 

}
