function InitResursCalculator( listID )
{
	var list = findObj( listID );

	list.selectedIndex = list.length - 1;
	list.onchange();
}


function CalcResursPayment( list, calculatorID, textboxID )
{
	var charges = eval( calculatorID + "_charges" );

    var charge = ( list.selectedIndex < charges.length ) ? charges[ list.selectedIndex ] : "";

    findObj(textboxID).value = charge;
}