Validar código postal español

Another validator, this time in Javascript.
Validates postal codes of Spain.