function pwd_chek () { if (document.pwd.wd.value=="longoff") { window.open ("cnotes.htm",target="main") ; } else { alert ("NO!") ; } };