Eighteen Cambodian prisoners of war have been released by Thailand, fulfilling a ceasefire agreement to end bitter fighting along their border.