The board of county commissioners of any county is authorized to procure contracts insuring its officials and employees including fire and sewer district officials and employees or any class or classes thereof and district court officers and employees any part of whose salary is payable by counties under a policy or policies of group life, group health, accident, accidental death and dismemberment, and hospital, surgical, or medical expense insurance. The dependents of any such persons may be insured under group policies which provide hospital, surgical or medical expense insurance. The contributions of such persons, if any, to the premiums for such insurance issued to the county as the policyholder may be deducted by the county from such persons’ salaries when authorized in writing by such persons so to do.