log function fixed to work on IE
validating zip code now uses charAt() instead of s[n] C-style array access to comply with ecmascript 3