jQuery(document).ready(function() {
    jQuery('#contact-form').bind('submit', function() {
        if ( jQuery('#contact-name').val() == '' || jQuery('#contact-email').val() == '' ) {
            alert('Please enter your name and e-mail address.');
            return false;
        }
    });
});
