KABUL (Agencies) - President Hamid Karzai demanded at a meeting with a UN Security Council team Tuesday that the international community set a 'timeline' for ending military intervention in Afghanistan, his office said. Karzai told a delegation from the Council that his country needed to know how long the US-led 'war on terror' was going to be fought in Afghanistan or it would have to seek a political solution to a Taliban-led insurgency. "The international community should give us a timeline of how long or how far the 'war on terrorism' will go," Karzai's chief spokesman Homayun Hamidzada cited the President as telling the delegation. "If we don't have a clear idea of how long it will be, the Afghan government has no choice but to seek political solutions," he said, adding this included 'starting to talk to Taliban and those opposing the government'. The delegation - which includes the US ambassador to the United Nations, Afghan-born Zalmay Khalilzad - arrived Monday on a fact-finding mission with security in Afghanistan at its weakest since the ouster of the Taliban. Karzai, due to stand for re-election next year, has been pushing for talks with insurgents as a way to end the spiralling violence, but only those who renounce links with Al-Qaeda and accept the post-Taliban constitution. A statement released after the meeting said Karzai had told the 15 UN ambassadors and representatives that Afghans were 'not hopeful for the future' because of the poor security situation. "The president emphasised that Afghanistan is committed to the war against Al-Qaeda and those Taliban who take orders from outside," it said, referring to extremist bases across the border in Pakistan. "But we will talk with those Taliban who for various reasons have joined the opposition and are not against the Afghan constitution," the statement said. Karzai was also critical of the situation that sees the Taliban controlling a number of districts in provinces with large numbers of international soldiers. "We need to ensure the Afghan government is in control of its entire territory," Hamidzada said. "Having pockets of territory like in southern Afghanistan and Helmand under Taliban control is unacceptable." Karzai also repeated to the UN group his demands that the international forces stop causing civilian casualties in their operations against insurgents and focus their efforts on militant bases in Pakistan, his spokesman said. "He emphasised that the 'war on terror' cannot be fought in Afghan villages. "It must be taken to (militant) sanctuaries and safe havens. That is why we are having civilian casualties - because we are ignoring the source of the problem," Hamidzada said. Meanwhile, Karzai wrote in an opinion piece in The Australian newspaper that the emergence of a democratic government in Pakistan offered a 'dim ray of hope' that regional cooperation, including India, could help bring an end to Taliban and Al-Qaeda violence. The emergence of a democratic government in Pakistan and the election of Asif Ali Zardari as President there offered a chance for change, Karzai said. "Democratic change in Pakistan is good news for Afghans, Pakistanis and, by extension, many others across the world," Karzai added. "I visited Pakistan for President Zardari's inauguration and for the first time I saw a dim ray of hope," Karzai said. "If we can all work together - Afghanistan, Pakistan, India, the US and our allies - I see a possibility of moving beyond the days when a government thinks it needs extremism as an instrument of policy," he said. "When all governments in the region reject extremism, there will be no place for extremists, and terrorism will wither away." Karzai said that after the rapid overthrow of the Taliban following the Sept 11 attacks, the international community made a mistake by concentrating on Afghanistan as the battlefield against militancy instead of adopting a regional approach.