Confirm Password (Not working)

Can't get JavaScript to work, can anyone see obvious error?
Tried without the ".value" and with ".value" at end of variable
declarations, but still nothing. Changing name to ID doesn't seem to do
anything either