function copyvio_toggle_details(details) { link = document.getElementById("cv-result-detail-link"); details = document.getElementById("cv-result-detail"); if (link.innerHTML == "Show details:") { details.style.display = "block"; link.innerHTML = "Hide details:"; set_cookie("EarwigCVShowDetails", "True", 1095); } else { details.style.display = "none"; link.innerHTML = "Show details:"; if (get_cookie("EarwigCVShowDetails")) { delete_cookie("EarwigCVShowDetails"); } } }