function showDetails(i) { hideOptions(i); document.getElementById("detail" + i + "HideLink").style.display = "inline"; document.getElementById("detail" + i + "ShowLink").style.display = "none"; document.getElementById("detail" + i).style.display = "block"; } function showComments(i) { hideOptions(i); document.getElementById("comment" + i + "HideLink").style.display = "inline"; document.getElementById("comment" + i + "ShowLink").style.display = "none"; document.getElementById("comment" + i).style.display = "block"; } function showRatings(i) { hideOptions(i); document.getElementById("rating" + i + "HideLink").style.display = "inline"; document.getElementById("rating" + i + "ShowLink").style.display = "none"; document.getElementById("rating" + i).style.display = "block"; } function hideOptions(i) { hideDetails(i); hideComments(i); hideRatings(i); } function hideDetails(i) { document.getElementById("detail" + i + "HideLink").style.display = "none"; document.getElementById("detail" + i + "ShowLink").style.display = "inline"; document.getElementById("detail" + i).style.display = "none"; } function hideComments(i) { document.getElementById("comment" + i + "HideLink").style.display = "none"; document.getElementById("comment" + i + "ShowLink").style.display = "inline"; document.getElementById("comment" + i).style.display = "none"; } function hideRatings(i) { document.getElementById("rating" + i + "HideLink").style.display = "none"; document.getElementById("rating" + i + "ShowLink").style.display = "inline"; document.getElementById("rating" + i).style.display = "none"; }