function showhide(vari) { if (vari.style.display=="none") { vari.style.display=""; } else { sleep(1000); vari.style.display="none"; } }