I am creating a user registration page for a project i am doing and I am having difficulty validating the password fields, i believe the problems lies with the specified input type. The code i am using works with text type inputs but does not seem to recognise password types. Does anyone have any suggestions other than making the password fields text fields. Below is an example of the IF THEN ELSE statements i am using....

<!-- Option Explicit
dim validation
dim header
header = "Pizza Organic"
Function MyForm_OnSubmit
validation = True

If (Document.MyForm.Password.Value) <> (Document.MyForm.ConfirmPassword.Value) Then
MsgBox "Your confirmation password does not match your orginal password, please correct this!",8, Header
validation = False
End If

If validation = True Then
MyForm_OnSubmit = True
Else
MyForm_OnSubmit = False
End If
End Function
-->

Thanks