
function gdsrWait(rater, loader) {
    jQuery("#"+rater).css("display", "none");
    jQuery("#"+loader).css("display", "block");
}

function gdsrEmpty() { }

jQuery(document).ready(function() {
    if (jQuery.browser.msie) jQuery(".gdsr_rating_as > a").attr("href", "javascript:gdsrEmpty()");
    jQuery(".gdsr_rating_as > a").click(function() {
        var el = jQuery(this).attr("id").split("X");
        gdsrWait(el[5], el[6]);
        jQuery.getJSON('STARRATING_AJAX', {vote_id: el[1], vote_value: el[2], vote_type: el[4], vote_tpl: el[7], vote_size: el[8] }, function(json) {
            gdsrWait(el[6], el[5]);
            if (json.status == 'ok') {
                jQuery("#gdr_stars_" + el[4] + el[1]).html("");
                jQuery("#gdr_vote_" + el[4] + el[1]).css("width", json.value);
                jQuery("#gdr_text_" + el[4] + el[1]).addClass("voted");
                jQuery("#gdr_text_" + el[4] + el[1]).html(json.rater);
            }
        });
    });
    <br />
<b>Warning</b>:  include(STARRATING_PATHcode/js/integration.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/home/aspencom/public_html/wp-content/plugins/gd-star-rating/code/js/main.php</b> on line <b>26</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'STARRATING_PATHcode/js/integration.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/aspencom/public_html/wp-content/plugins/gd-star-rating/code/js/main.php</b> on line <b>26</b><br />
    <br />
<b>Warning</b>:  include(STARRATING_PATHcode/js/thumbs.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/home/aspencom/public_html/wp-content/plugins/gd-star-rating/code/js/main.php</b> on line <b>27</b><br />
<br />
<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening 'STARRATING_PATHcode/js/thumbs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/aspencom/public_html/wp-content/plugins/gd-star-rating/code/js/main.php</b> on line <b>27</b><br />
    });

var gdsrCanceled = false;
function hideshowCmmInt() {
    var value = jQuery("#comment_parent").val();
    if (value == 0) {
        jQuery("#gdsr-cmm-integration-block-review").removeClass("cmminthide");
        jQuery("#gdsr-cmm-integration-block-standard").removeClass("cmminthide");
        jQuery("#gdsr-cmm-integration-block-multis").removeClass("cmminthide");
    } else {
        jQuery("#gdsr-cmm-integration-block-review").addClass("cmminthide");
        jQuery("#gdsr-cmm-integration-block-standard").addClass("cmminthide");
        jQuery("#gdsr-cmm-integration-block-multis").addClass("cmminthide");
    }

    if (!gdsrCanceled) {
        jQuery("#cancel-comment-reply-link").click(function() {
            hideshowCmmInt();
        });
        gdsrCanceled = true;
    } else {
        jQuery("#cancel-comment-reply-link").unbind("click");
        gdsrCanceled = false;
    }
}

function is_cmm_rated_multis() {
    var value = value_cmm_rated_multis();
    var rated = true;
    for (var i = 0; i < value.length; i++) {
        if (value[i] == 0) rated = false;
    }
    return rated;
}

function is_cmm_rated_standard() {
    return value_cmm_rated_standard() > 0;
}

function is_cmm_rated_review() {
    return value_cmm_rated_review() > 0;
}

function value_cmm_rated_multis() {
    var value = jQuery(".gdsr-mur-cls-rt").val();
    return value.split("X");
}

function value_cmm_rated_standard() {
    return jQuery(".gdsr-int-cls-rt").val();
}

function value_cmm_rated_review() {
    return jQuery(".gdsr-cmm-cls-rt").val();
}

