function check(form)/*function to check userid & password*/
{
/*the following code checkes whether the entered userid and password are matching*/
if(form.userid.value == "username" && form.pswrd.value == "password")
{
window.open('target.html')/*opens the target page while Id & password matches*/
}
else
{
	
alert("The username or password you enter was invalid." + '\n' + "Please try again" + '\n' + '\n' + "For assistance, Dial(800) 391-4256")/*displays error message*/
}
}

