// CONTACT US CODE
$(function () {

$('#textComment').keyup(function(){ $('#submitButton').removeAttr('disabled'); $('#submitButton').attr('style','color:#FF5000;');});


    $('#checkInput_register').click(function () {

        if ($('#checkInput_register').attr("checked")) {
            $('#submitButton').removeAttr('disabled');
        } else {
            if ($('#checkInput_comment').attr("checked")) {
                $('#submitButton').removeAttr('disabled');
                $('#textComment').removeAttr('disabled');
                $('#selectBooks').removeAttr('disabled');
            } else {
                $('#submitButton').attr('disabled', 'disabled');
                $('#textComment').attr('disabled', 'disabled');
                $('#selectBooks').attr('disabled', 'disabled');
            }
        }
    });

    $('#checkInput_comment').click(function () {

        if ($('#checkInput_comment').attr("checked")) {
            $('#submitButton').removeAttr('disabled');
            $('#textComment').removeAttr('disabled');
            $('#selectBooks').removeAttr('disabled');
        } else {
            $('#textComment').attr('disabled', 'disabled');
            $('#selectBooks').attr('disabled', 'disabled');
            if ($('#checkInput_register').attr("checked")) {
                $('#submitButton').removeAttr('disabled');
            } else {
                $('#submitButton').attr('disabled', 'disabled');
            }
        }
    });









});

// SEARCH GOOGLE
google.load('search', '1', { language: 'en' });
google.setOnLoadCallback(function () {
    var customSearchControl = new google.search.CustomSearchControl('003038986117091530336:kelnioawzrs');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
}, true);



