function xs_show(tooltipId, parentId) { it = document.getElementById(tooltipId); if ((it.style.top == '' || it.style.top == 0) && (it.style.left == '' || it.style.left == 0)) { // need to fixate default size (MSIE problem) it.style.width = it.offsetWidth + 'px'; it.style.height = it.offsetHeight + 'px'; img = document.getElementById(parentId); } it.style.visibility = 'visible'; } function xs_hide(id) { it = document.getElementById(id); it.style.visibility = 'hidden'; }