function recalculatePortfolioAllocation()
{
    var stock_allocation_percentage = $('stock_allocation_percentage');
    var stock_starting_point = $('stock_starting_point');
    
    var percents = parseInt( stock_allocation_percentage.getValue() );
    var rest = 100 - percents;
    
    var tips_starting_point = $('tips_starting_point');
    var starting_portoflio_value = $('starting_portoflio_value').getValue();

    
    tips_starting_point.value = Math.round((starting_portoflio_value * rest/100),2);
    stock_starting_point.value = Math.round((starting_portoflio_value*percents/100),2);
}
