Custom SINGLE page with custom metaboxes and custom template

Simlified function, maybe will help someone:

jQuery(document).ready(function($) {
    $("#page_template").change(function() {
        if($('#page_template').val() != 'page-contacts.php') {
            // show the meta box
            $('#postdivrich').show();
        } else {
            // hide your meta box
            $('#postdivrich').hide();
        }
    }).change();         
}); 

Of course it lacks controls what fields will be submitted, because jQuery just hides them. As I am coding it for one-admin user it is not big deal, helps to get cleaner layout. But in other cases it might be dangerous.