Even if you encrypt/hash the password on the client-side, it can still be hacked. At that point, then they don't need to know the password, they can just use the hashed / encrypted password without your javascript.
If SSL is required, I'd suggest you actually spend the money and purchase an SSL cert. If it's not required, then I wouldn't worry too much with encrypting passwords from a form.