function onLink(pElement) { var mItem = document.getElementById("lM"+pElement); mItem.style.textDecoration = "underline"; } function leaveLink(pElement) { var mItem = document.getElementById("lM"+pElement); mItem.style.textDecoration = "none"; }