This is my latest unsuccessful attempt.
'..code to get entered and actual passwords
if entered_password=actual_password then
response.write "<!--" & vbCrLF
response.write "alert('Incorrect password. Try again');" & vbCrLF
response.write "-->" & vbCrLF
response.write "</script>" & vbCrLF