var $j = jQuery.noConflict();

function getCosts(){
    showLoading();
    hideCosts();
    
    $j.post('../injects/calculatorAjax.php', {
        countryFrom: $j("#countryFrom").val(),
        countryTo: $j("#countryTo").val()
    },function(data){
        hideLoading();
        showCosts();
        var data=data.split(";;");
        $j("#cost1").html(data[0]);
        $j("#cost2").html(data[1]);
    });
}

function showLoading()
{
    $j("#loadingGif").show();
}
function hideLoading()
{
    $j("#loadingGif").hide();
}
function showCosts()
{
    $j("#costsTable").show();
}
function hideCosts()
{
    $j("#costsTable").hide();
}


$j(document).ready(function() {

    $j("#loadingGif").hide();
    $j("#costsTable").hide();
}
)
