" It is vital that the Afghan government learns the lessons from the 2009 elections as it works with the international community to prepare the 2010 parliamentary elections , " a spokesman for the Foreign Office said .