The school board of any district may advance funds which by law may be used only for stated purposes and which are not immediately required for the purpose or purposes for which the same were raised, or otherwise made available for the purpose or purposes for which an issue of bonds has been authorized. Suitable records shall be kept of the temporary diversion of such funds. Such funds shall be made again available to the district from the proceeds of such bonds, or from the proceeds of the sale of bond anticipation notes issued in anticipation of the sale of such bonds.