function ridim() {
    dimDx = $("#dx").outerHeight(true);
    dimSx = $("#sx").outerHeight(true);
    dimCon = $("#contenitore_dx").outerHeight(true);
    dimFin = window.innerHeight ? window.innerHeight : $(window).height();
    dimDoc = $(document).height();
    if(dimDx>dimFin) {
        $("#sx").height(dimDx);
    }
    else if(dimSx>dimFin) {
        $("#dx").height(dimSx);
        $("#contenitore_dx").height(dimSx);
    }
    else {
        $("#sx").height(dimFin);
        $("#dx").height(dimFin);
        $("#contenitore_dx").height(dimFin);
    }
}
