﻿function isValidZipFormat(zip)
{
  var re = /^(\d{5})-?(\d{4})?$/;
  return (re.test(zip));
}