// JavaScript Document // ShowHide() works with IE 4.0+ and Netscape 7.0 function ShowHide(divId) { var id = document.getElementById(divId); var id2 = document.getElementById(divId+"a"); if (id2.style.display == "none") { eval("id2.style.display = 'block'"); } else { eval("id2.style.display = 'none'"); } if (id.style.display == "block") { eval("id.style.display = 'none'"); } else { eval("id.style.display = 'block'"); } } function sannr(formid){ var nafn = formid.netf.value; var pass = formid.passw.value; if(nafn.length < 3) { alert("slįšu inn netfang "); formid.netf.select(); formid.netf.focus(); return false; } if(pass.length < 3) { alert("slįšu inn lykilorš "); formid.passw.select(); formid.passw.focus(); return false; } return true; }