function checkCatRequestFields(country) {
    missinginfo = '';
    if (country == 'United States') {
        if (document.form.state.value == '') {
            missinginfo +='\n State';
        }
        if (!document.form.zip.value.match(/\d{4,}/)) {
            //matches if the string has at least four number characters in a row
            missinginfo +='\n Postal Code';
        }
    } else if (country == 'Canada') {
        if  (document.form.province.value == '') {
            missinginfo +='\n Province';
        }
        if (!document.form.zip.value.match(/^\s*([a-z]|[A-Z])\d([a-z]|[A-Z])\s{0,3}\d([a-z]|[A-Z])\d\s*$/)) {
            //matches: beginning of the string, any number of spaces, letter, number, letter, between 0 and 3 spaces (inclusive), number, letter, number, any number of spaces, end of string.
            missinginfo +='\n Postal Code';
        }
    }
    if (document.form.address1.value  == '') {
        missinginfo +='\n Address 1';
    }
    if (document.form.city.value      == '') {
        missinginfo +='\n City';
    }

    if (missinginfo != ''){
        missinginfo ='\n' + 'These fields were left blank or are invalid:\n' + missinginfo + '\n' + '\nPlease re-enter and submit again!';
        alert(missinginfo);
        return false;
    } else {
        return true;
    }
}