function validateZIP(event, str, ClientID) {
    if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) {
        document.getElementById(ClientID).click();
        return false;
    } else {
        return isNumeric(event, str);
    }
}
function isNumeric(evt, str) {
    var charCode = (evt.which) ? evt.which : event.keyCode
    if ((charCode > 31 && (charCode < 48 || charCode > 57))) {
        if ((charCode > 36 && charCode < 41) || (charCode == 46)) {
            return true;
        } else {
            return false;
        }
    }
    var value = str + String.fromCharCode(charCode);
    if (value.length >= 6) {
        if ((charCode > 36 && charCode < 41) || (charCode <= 31) || (charCode == 46)) {
            return true;
        } else {
            return false;
        }
    }
    return true;
}

$(document).ready(function() {
    $(".sZipCode").each(function() {
        if ($(this).val() == '') {
            $(this).val('Enter your zip code');
            $(this).attr('style', 'color: #CCC;');
        } else {
            $(this).attr('style', '');
        }
        $(this).click(function() {
            var thisBox = $(this);
            if (thisBox.val() == 'Enter your zip code') {
                thisBox.val('');
                thisBox.attr('style', '');
                clear_style(thisBox.attr('id'));
            }
        });
        $(this).focus(function() {
            var thisBox = $(this);
            if (thisBox.val() == 'Enter your zip code') {
                thisBox.val('');
                thisBox.attr('style', '');
                clear_style(thisBox.attr('id'));
            }
        });
        $(this).blur(function() {
            var thisBox = $(this);
            if (thisBox.val() == 'Enter your zip code') {
                thisBox.val('');
                thisBox.attr('style', '');
                clear_style(thisBox.attr('id'));
            }
        });
    });
}); 


