/**
 * performs JS validation on abuse report send,
 * sends AJAX request to server,
 * notifies user about success or error on sending.
 */
function fillRegionOne(firstCategory, secondCategory, alphabeticalClass) {
    var params = new Object();
    params["FIRST_CATEGORY"] = firstCategory;
    params["SECOND_CATEGORY"] = secondCategory;
    params["ALPHABETICALL_PARAMETER"] = alphabeticalClass;
    // the ajax_get_cache is required, because of the AJAX request being cached.
    params["ajax_get_cache"] = encodeURIComponent((new Date()).getTime());
    var url = "/splinks";
    $.ajax({
        type: "POST",
        dataType: "text/xml",
        url: url,
        data: params,
        success: function(html) {
            var regionOneContainer = $("#splink-region-one-container");
            regionOneContainer.html(html);
        },
        error: function(XMLHttpRequest, textStatus) {
        }
    });
    return false;
}