//function fillcolumn(){
 // this function is used to fill the column list on load
//addOption(document.tableFilter.column, "Fruits", "Fruits", "");
//addOption(document.tableFilter.column, "Games", "Games", "");
//addOption(document.tableFilter.column, "Scripts", "Scripts", "");
//}
function SelectSubCat(){
// ON selection of column this function will work
removeAllOptions(document.tableFilter.keyword);

if(document.tableFilter.column.value == '1'){
	addOption(document.getElementById("keyword"),"choose a province", "choose a province");
	addOption(document.getElementById("keyword"),"Bulawayo", "Bulawayo");
	addOption(document.getElementById("keyword"),"Harare", "Harare");
	addOption(document.getElementById("keyword"),"Mashonaland Central", "Mashonaland Central");
	addOption(document.getElementById("keyword"),"Mashonaland East", "Mashonaland East");
	addOption(document.getElementById("keyword"),"Mashonaland West", "Mashonaland West");
	addOption(document.getElementById("keyword"),"Masvingo", "Masvingo");
	addOption(document.getElementById("keyword"),"Matabeleland North", "Matabeleland North");
	addOption(document.getElementById("keyword"),"Matabeleland South", "Matabeleland South");
	addOption(document.getElementById("keyword"),"Manicaland", "Manicaland");
	addOption(document.getElementById("keyword"),"Midlands", "Midlands");
}
//////////////////
if(document.tableFilter.column.value == '2'){
	addOption(document.getElementById("keyword"),"-choose a constituency-", "-choose a constituency-");
	addOption(document.getElementById("keyword"),"Beitbridge East", "Beitbridge East");
addOption(document.getElementById("keyword"),"Beitbridge West", "Beitbridge West");
addOption(document.getElementById("keyword"),"Bikita East", "Bikita East");
addOption(document.getElementById("keyword"),"Bikita South", "Bikita South");
addOption(document.getElementById("keyword"),"Bikita West", "Bikita West");
addOption(document.getElementById("keyword"),"Bindura North", "Bindura North");
addOption(document.getElementById("keyword"),"Bindura South", "Bindura South");
addOption(document.getElementById("keyword"),"Binga North", "Binga North");
addOption(document.getElementById("keyword"),"Binga South", "Binga South");
addOption(document.getElementById("keyword"),"Bubi", "Bubi");
addOption(document.getElementById("keyword"),"Budiriro", "Budiriro");
addOption(document.getElementById("keyword"),"Buhera Central", "Buhera Central");
addOption(document.getElementById("keyword"),"Buhera North", "Buhera North");
addOption(document.getElementById("keyword"),"Buhera South", "Buhera South");
addOption(document.getElementById("keyword"),"Buhera West", "Buhera West");
addOption(document.getElementById("keyword"),"Bulawayo Central", "Bulawayo Central");
addOption(document.getElementById("keyword"),"Bulawayo East", "Bulawayo East");
addOption(document.getElementById("keyword"),"Bulawayo South", "Bulawayo South");
addOption(document.getElementById("keyword"),"Bulilima East", "Bulilima East");
addOption(document.getElementById("keyword"),"Bulilima West", "Bulilima West");
addOption(document.getElementById("keyword"),"Chakari", "Chakari");
addOption(document.getElementById("keyword"),"Chegutu East", "Chegutu East");
addOption(document.getElementById("keyword"),"Chegutu West", "Chegutu West");
addOption(document.getElementById("keyword"),"Chikomba Central", "Chikomba Central");
addOption(document.getElementById("keyword"),"Chikomba East", "Chikomba East");
addOption(document.getElementById("keyword"),"Chikomba West", "Chikomba West");
addOption(document.getElementById("keyword"),"Chimanimani East", "Chimanimani East");
addOption(document.getElementById("keyword"),"Chimanimani West", "Chimanimani West");
addOption(document.getElementById("keyword"),"Chinhoyi", "Chinhoyi");
addOption(document.getElementById("keyword"),"Chipinge Central", "Chipinge Central");
addOption(document.getElementById("keyword"),"Chipinge East", "Chipinge East");
addOption(document.getElementById("keyword"),"Chipinge South", "Chipinge South");
addOption(document.getElementById("keyword"),"Chipinge West", "Chipinge West");
addOption(document.getElementById("keyword"),"Chiredzi East", "Chiredzi East");
addOption(document.getElementById("keyword"),"Chiredzi North", "Chiredzi North");
addOption(document.getElementById("keyword"),"Chiredzi South", "Chiredzi South");
addOption(document.getElementById("keyword"),"Chiredzi West", "Chiredzi West");
addOption(document.getElementById("keyword"),"Chirumanzu", "Chirumanzu");
addOption(document.getElementById("keyword"),"Chirumanzu-Zibagwe", "Chirumanzu-Zibagwe");
addOption(document.getElementById("keyword"),"Chitungwiza North", "Chitungwiza North");
addOption(document.getElementById("keyword"),"Chitungwiza South", "Chitungwiza South");
addOption(document.getElementById("keyword"),"Chivi Central", "Chivi Central");
addOption(document.getElementById("keyword"),"Chivi North", "Chivi North");
addOption(document.getElementById("keyword"),"Chivi South", "Chivi South");
addOption(document.getElementById("keyword"),"Chiwundura", "Chiwundura");
addOption(document.getElementById("keyword"),"Dangamvura Chikanga", "Dangamvura Chikanga");
addOption(document.getElementById("keyword"),"Dzivarasekwa", "Dzivarasekwa");
addOption(document.getElementById("keyword"),"Emakhandeni - Entumbane", "Emakhandeni - Entumbane");
addOption(document.getElementById("keyword"),"Epworth", "Epworth");
addOption(document.getElementById("keyword"),"Glen Norah", "Glen Norah");
addOption(document.getElementById("keyword"),"Glen View South", "Glen View South");
addOption(document.getElementById("keyword"),"Gokwe", "Gokwe");
addOption(document.getElementById("keyword"),"Gokwe Kana", "Gokwe Kana");
addOption(document.getElementById("keyword"),"Gokwe Mapfungautsi", "Gokwe Mapfungautsi");
addOption(document.getElementById("keyword"),"Gokwe Sengwa", "Gokwe Sengwa");
addOption(document.getElementById("keyword"),"Gokwe Sesame", "Gokwe Sesame");
addOption(document.getElementById("keyword"),"Gokwe-Chireya", "Gokwe-Chireya");
addOption(document.getElementById("keyword"),"Gokwe-Gumunyu", "Gokwe-Gumunyu");
addOption(document.getElementById("keyword"),"Gokwe-Kabuyuni", "Gokwe-Kabuyuni");
addOption(document.getElementById("keyword"),"Gokwe-Nembudziya", "Gokwe-Nembudziya");
addOption(document.getElementById("keyword"),"Goromonzi North", "Goromonzi North");
addOption(document.getElementById("keyword"),"Goromonzi South", "Goromonzi South");
addOption(document.getElementById("keyword"),"Goromonzi West", "Goromonzi West");
addOption(document.getElementById("keyword"),"Guruve North", "Guruve North");
addOption(document.getElementById("keyword"),"Guruve South", "Guruve South");
addOption(document.getElementById("keyword"),"Gutu Central", "Gutu Central");
addOption(document.getElementById("keyword"),"Gutu East", "Gutu East");
addOption(document.getElementById("keyword"),"Gutu North", "Gutu North");
addOption(document.getElementById("keyword"),"Gutu South", "Gutu South");
addOption(document.getElementById("keyword"),"Gutu West", "Gutu West");
addOption(document.getElementById("keyword"),"Gwanda Central", "Gwanda Central");
addOption(document.getElementById("keyword"),"Gwanda North", "Gwanda North");
addOption(document.getElementById("keyword"),"Gwanda South", "Gwanda South");
addOption(document.getElementById("keyword"),"Gweru Urban", "Gweru Urban");
addOption(document.getElementById("keyword"),"Harare Central", "Harare Central");
addOption(document.getElementById("keyword"),"Harare East", "Harare East");
addOption(document.getElementById("keyword"),"Harare North", "Harare North");
addOption(document.getElementById("keyword"),"Harare South", "Harare South");
addOption(document.getElementById("keyword"),"Harare West", "Harare West");
addOption(document.getElementById("keyword"),"Hatfield", "Hatfield");
addOption(document.getElementById("keyword"),"Headlands", "Headlands");
addOption(document.getElementById("keyword"),"Highfield East", "Highfield East");
addOption(document.getElementById("keyword"),"Highfield West", "Highfield West");
addOption(document.getElementById("keyword"),"Hurungwe Central", "Hurungwe Central");
addOption(document.getElementById("keyword"),"Hurungwe East", "Hurungwe East");
addOption(document.getElementById("keyword"),"Hurungwe North", "Hurungwe North");
addOption(document.getElementById("keyword"),"Hurungwe West", "Hurungwe West");
addOption(document.getElementById("keyword"),"Hwange Central", "Hwange Central");
addOption(document.getElementById("keyword"),"Hwange East", "Hwange East");
addOption(document.getElementById("keyword"),"Hwange West", "Hwange West");
addOption(document.getElementById("keyword"),"Insiza North", "Insiza North");
addOption(document.getElementById("keyword"),"Insiza South", "Insiza South");
addOption(document.getElementById("keyword"),"Kadoma Central", "Kadoma Central");
addOption(document.getElementById("keyword"),"Kambuzuma", "Kambuzuma");
addOption(document.getElementById("keyword"),"Kariba", "Kariba");
addOption(document.getElementById("keyword"),"Kuwadzana", "Kuwadzana");
addOption(document.getElementById("keyword"),"Kuwadzana East", "Kuwadzana East");
addOption(document.getElementById("keyword"),"Kwekwe Central", "Kwekwe Central");
addOption(document.getElementById("keyword"),"Lobengula", "Lobengula");
addOption(document.getElementById("keyword"),"Lupane East", "Lupane East");
addOption(document.getElementById("keyword"),"Lupane West", "Lupane West");
addOption(document.getElementById("keyword"),"Luveve", "Luveve");
addOption(document.getElementById("keyword"),"Mabvuku/Tafara", "Mabvuku/Tafara");
addOption(document.getElementById("keyword"),"Magunje", "Magunje");
addOption(document.getElementById("keyword"),"Magwegwe", "Magwegwe");
addOption(document.getElementById("keyword"),"Makokoba", "Makokoba");
addOption(document.getElementById("keyword"),"Makonde", "Makonde");
addOption(document.getElementById("keyword"),"Makoni Central", "Makoni Central");
addOption(document.getElementById("keyword"),"Makoni North", "Makoni North");
addOption(document.getElementById("keyword"),"Makoni South", "Makoni South");
addOption(document.getElementById("keyword"),"Makoni West", "Makoni West");
addOption(document.getElementById("keyword"),"Mangwe", "Mangwe");
addOption(document.getElementById("keyword"),"Maramba-Pfungwe", "Maramba-Pfungwe");
addOption(document.getElementById("keyword"),"Marondera Central", "Marondera Central");
addOption(document.getElementById("keyword"),"Marondera East", "Marondera East");
addOption(document.getElementById("keyword"),"Marondera West", "Marondera West");
addOption(document.getElementById("keyword"),"Masvingo Central", "Masvingo Central");
addOption(document.getElementById("keyword"),"Masvingo North", "Masvingo North");
addOption(document.getElementById("keyword"),"Masvingo South", "Masvingo South");
addOption(document.getElementById("keyword"),"Masvingo Urban", "Masvingo Urban");
addOption(document.getElementById("keyword"),"Masvingo West", "Masvingo West");
addOption(document.getElementById("keyword"),"Matobo North", "Matobo North");
addOption(document.getElementById("keyword"),"Matobo South", "Matobo South");
addOption(document.getElementById("keyword"),"Mazowe Central", "Mazowe Central");
addOption(document.getElementById("keyword"),"Mazowe North", "Mazowe North");
addOption(document.getElementById("keyword"),"Mazowe South", "Mazowe South");
addOption(document.getElementById("keyword"),"Mazowe West", "Mazowe West");
addOption(document.getElementById("keyword"),"Mbare", "Mbare");
addOption(document.getElementById("keyword"),"Mberengwa East", "Mberengwa East");
addOption(document.getElementById("keyword"),"Mberengwa North", "Mberengwa North");
addOption(document.getElementById("keyword"),"Mberengwa South", "Mberengwa South");
addOption(document.getElementById("keyword"),"Mberengwa West", "Mberengwa West");
addOption(document.getElementById("keyword"),"Mbire", "Mbire");
addOption(document.getElementById("keyword"),"Mbizo", "Mbizo");
addOption(document.getElementById("keyword"),"Mhangura", "Mhangura");
addOption(document.getElementById("keyword"),"Mhondoro - Mubaira", "Mhondoro - Mubaira");
addOption(document.getElementById("keyword"),"Mhondoro - Ngezi", "Mhondoro - Ngezi");
addOption(document.getElementById("keyword"),"Mkoba", "Mkoba");
addOption(document.getElementById("keyword"),"Mt Darwin East", "Mt Darwin East");
addOption(document.getElementById("keyword"),"Mt Darwin North", "Mt Darwin North");
addOption(document.getElementById("keyword"),"Mt Darwin South", "Mt Darwin South");
addOption(document.getElementById("keyword"),"Mt Darwin West", "Mt Darwin West");
addOption(document.getElementById("keyword"),"Mt Pleasant", "Mt Pleasant");
addOption(document.getElementById("keyword"),"Mudzi North", "Mudzi North");
addOption(document.getElementById("keyword"),"Mudzi South", "Mudzi South");
addOption(document.getElementById("keyword"),"Mudzi West", "Mudzi West");
addOption(document.getElementById("keyword"),"Mufakose", "Mufakose");
addOption(document.getElementById("keyword"),"Murewa North", "Murewa North");
addOption(document.getElementById("keyword"),"Murewa South", "Murewa South");
addOption(document.getElementById("keyword"),"Murewa West", "Murewa West");
addOption(document.getElementById("keyword"),"Musikavanhu", "Musikavanhu");
addOption(document.getElementById("keyword"),"Mutare Central", "Mutare Central");
addOption(document.getElementById("keyword"),"Mutare North", "Mutare North");
addOption(document.getElementById("keyword"),"Mutare South", "Mutare South");
addOption(document.getElementById("keyword"),"Mutare West", "Mutare West");
addOption(document.getElementById("keyword"),"Mutasa Central", "Mutasa Central");
addOption(document.getElementById("keyword"),"Mutasa North", "Mutasa North");
addOption(document.getElementById("keyword"),"Mutasa South", "Mutasa South");
addOption(document.getElementById("keyword"),"Mutoko East", "Mutoko East");
addOption(document.getElementById("keyword"),"Mutoko North", "Mutoko North");
addOption(document.getElementById("keyword"),"Mutoko South", "Mutoko South");
addOption(document.getElementById("keyword"),"Muzarabani North", "Muzarabani North");
addOption(document.getElementById("keyword"),"Muzvezve", "Muzvezve");
addOption(document.getElementById("keyword"),"Mwenezi East", "Mwenezi East");
addOption(document.getElementById("keyword"),"Mwenezi West", "Mwenezi West");
addOption(document.getElementById("keyword"),"Nkayi North", "Nkayi North");
addOption(document.getElementById("keyword"),"Nkayi South", "Nkayi South");
addOption(document.getElementById("keyword"),"Nketa", "Nketa");
addOption(document.getElementById("keyword"),"Nkulumane", "Nkulumane");
addOption(document.getElementById("keyword"),"Norton", "Norton");
addOption(document.getElementById("keyword"),"Nyanga North", "Nyanga North");
addOption(document.getElementById("keyword"),"Nyanga South", "Nyanga South");
addOption(document.getElementById("keyword"),"Pelandaba - Mpopoma", "Pelandaba - Mpopoma");
addOption(document.getElementById("keyword"),"Pumula", "Pumula");
addOption(document.getElementById("keyword"),"Redcliff", "Redcliff");
addOption(document.getElementById("keyword"),"Rushinga", "Rushinga");
addOption(document.getElementById("keyword"),"Sanyati", "Sanyati");
addOption(document.getElementById("keyword"),"Seke", "Seke");
addOption(document.getElementById("keyword"),"Shamva North", "Shamva North");
addOption(document.getElementById("keyword"),"Shamva South", "Shamva South");
addOption(document.getElementById("keyword"),"Shurugwi North", "Shurugwi North");
addOption(document.getElementById("keyword"),"Shurugwi South", "Shurugwi South");
addOption(document.getElementById("keyword"),"Silobela", "Silobela");
addOption(document.getElementById("keyword"),"Southerton", "Southerton");
addOption(document.getElementById("keyword"),"St Marys", "St Marys");
addOption(document.getElementById("keyword"),"Sunningdale", "Sunningdale");
addOption(document.getElementById("keyword"),"Tsholotsho North", "Tsholotsho North");
addOption(document.getElementById("keyword"),"Tsholotsho South", "Tsholotsho South");
addOption(document.getElementById("keyword"),"Umguza", "Umguza");
addOption(document.getElementById("keyword"),"Umzingwane", "Umzingwane");
addOption(document.getElementById("keyword"),"Uzumba", "Uzumba");
addOption(document.getElementById("keyword"),"Vungu", "Vungu");
addOption(document.getElementById("keyword"),"Warren Park", "Warren Park");
addOption(document.getElementById("keyword"),"Wedza North", "Wedza North");
addOption(document.getElementById("keyword"),"Wedza South", "Wedza South");
addOption(document.getElementById("keyword"),"Zaka Central", "Zaka Central");
addOption(document.getElementById("keyword"),"Zaka East", "Zaka East");
addOption(document.getElementById("keyword"),"Zaka North", "Zaka North");
addOption(document.getElementById("keyword"),"Zaka West", "Zaka West");
addOption(document.getElementById("keyword"),"Zengeza East", "Zengeza East");
addOption(document.getElementById("keyword"),"Zengeza West", "Zengeza West");
addOption(document.getElementById("keyword"),"Zhombe", "Zhombe");
addOption(document.getElementById("keyword"),"Zvimba East", "Zvimba East");
addOption(document.getElementById("keyword"),"Zvimba North", "Zvimba North");
addOption(document.getElementById("keyword"),"Zvimba South", "Zvimba South");
addOption(document.getElementById("keyword"),"Zvimba West", "Zvimba West");
addOption(document.getElementById("keyword"),"Zvishavane Ngezi", "Zvishavane Ngezi");
addOption(document.getElementById("keyword"),"Zvishavane Runde", "Zvishavane Runde");

}
//////////////////
if(document.tableFilter.column.value == '3'){
	addOption(document.getElementById("keyword"),"choose a party", "choose a party");
	addOption(document.getElementById("keyword"),"ZanuPF", "ZanuPF");
	addOption(document.getElementById("keyword"),"MDC", "MDC");
	addOption(document.getElementById("keyword"),"ZANU-Ndonga", "ZANU-Ndonga");
	addOption(document.getElementById("keyword"),"Independent", "Independent");
	addOption(document.getElementById("keyword"),"ZIYA", "ZIYA");
	addOption(document.getElementById("keyword"),"ZPDP", "ZPDP");
}
}
//////////////////
function removeAllOptions() {
document.getElementById('keyword').length = 0;
}
//////////////////
function addOption(selectbox,text,value )
{
	var optn = document.createElement("OPTION");
	optnText=document.createTextNode(text)
	optn.value = value;
	optn.appendChild(optnText);
	selectbox.appendChild(optn);
}
//////////////////
function setFilter()
{
	removeAllOptions(document.tableFilter.keyword);
	addOption(document.getElementById("keyword"),"-choose a province-", "-choose a province-");
	addOption(document.getElementById("keyword"),"Bulawayo", "Bulawayo");
	addOption(document.getElementById("keyword"),"Harare", "Harare");
	addOption(document.getElementById("keyword"),"Mashonaland Central", "Mashonaland Central");
	addOption(document.getElementById("keyword"),"Mashonaland East", "Mashonaland East");
	addOption(document.getElementById("keyword"),"Mashonaland West", "Mashonaland West");
	addOption(document.getElementById("keyword"),"Masvingo", "Masvingo");
	addOption(document.getElementById("keyword"),"Matabeleland North", "Matabeleland North");
	addOption(document.getElementById("keyword"),"Matabeleland South", "Matabeleland South");
	addOption(document.getElementById("keyword"),"Manicaland", "Manicaland");
	addOption(document.getElementById("keyword"),"Midlands", "Midlands");
}

function SelectConstit(){
// ON selection of column this function will work
removeConstitOptions(document.constit.constituency);
addOption(document.getElementById("constituency"),"-choose a constituency-", "-choose a constituency-");

if(document.constit.province.value == 'Bulawayo'){
	addOption(document.getElementById("constituency"),"Bulawayo Central", "Bulawayo Central");
	addOption(document.getElementById("constituency"),"Bulawayo East", "Bulawayo East");
	addOption(document.getElementById("constituency"),"Bulawayo South", "Bulawayo South");
	addOption(document.getElementById("constituency"),"Emakhandeni - Entumbane", "Emakhandeni - Entumbane");
	addOption(document.getElementById("constituency"),"Lobengula", "Lobengula");
	addOption(document.getElementById("constituency"),"Luveve", "Luveve");
	addOption(document.getElementById("constituency"),"Magwegwe", "Magwegwe");
	addOption(document.getElementById("constituency"),"Makokoba", "Makokoba");
	addOption(document.getElementById("constituency"),"Nketa", "Nketa");
	addOption(document.getElementById("constituency"),"Nkulumane", "Nkulumane");
	addOption(document.getElementById("constituency"),"Pelandaba - Mpopoma", "Pelandaba - Mpopoma");
	addOption(document.getElementById("constituency"),"Pumula", "Pumula");
}
if(document.constit.province.value == 'Harare'){
	addOption(document.getElementById("constituency"),"Budiriro", "Budiriro");
	addOption(document.getElementById("constituency"),"Chitungwiza North", "Chitungwiza North");
	addOption(document.getElementById("constituency"),"Chitungwiza South", "Chitungwiza South");
	addOption(document.getElementById("constituency"),"Dzivarasekwa", "Dzivarasekwa");
	addOption(document.getElementById("constituency"),"Epworth", "Epworth");
	addOption(document.getElementById("constituency"),"Glen Norah", "Glen Norah");
	addOption(document.getElementById("constituency"),"Glen View South", "Glen View South");
	addOption(document.getElementById("constituency"),"Harare Central", "Harare Central");
	addOption(document.getElementById("constituency"),"Harare East", "Harare East");
	addOption(document.getElementById("constituency"),"Harare North", "Harare North");
	addOption(document.getElementById("constituency"),"Harare South", "Harare South");
	addOption(document.getElementById("constituency"),"Harare West", "Harare West");
	addOption(document.getElementById("constituency"),"Hatfield", "Hatfield");
	addOption(document.getElementById("constituency"),"Highfield East", "Highfield East");
	addOption(document.getElementById("constituency"),"Highfield West", "Highfield West");
	addOption(document.getElementById("constituency"),"Kambuzuma", "Kambuzuma");
	addOption(document.getElementById("constituency"),"Kuwadzana", "Kuwadzana");
	addOption(document.getElementById("constituency"),"Kuwadzana East", "Kuwadzana East");
	addOption(document.getElementById("constituency"),"Mabvuku/Tafara", "Mabvuku/Tafara");
	addOption(document.getElementById("constituency"),"Mbare", "Mbare");
	addOption(document.getElementById("constituency"),"Mt Pleasant", "Mt Pleasant");
	addOption(document.getElementById("constituency"),"Mufakose", "Mufakose");
	addOption(document.getElementById("constituency"),"Southerton", "Southerton");
	addOption(document.getElementById("constituency"),"St Marys", "St Marys");
	addOption(document.getElementById("constituency"),"Sunningdale", "Sunningdale");
	addOption(document.getElementById("constituency"),"Warren Park", "Warren Park");
	addOption(document.getElementById("constituency"),"Zengeza East", "Zengeza East");
	addOption(document.getElementById("constituency"),"Zengeza West", "Zengeza West");
}
if(document.constit.province.value == 'Mashonaland Central'){
	addOption(document.getElementById("constituency"),"Bindura North", "Bindura North");
	addOption(document.getElementById("constituency"),"Bindura South", "Bindura South");
	addOption(document.getElementById("constituency"),"Guruve North", "Guruve North");
	addOption(document.getElementById("constituency"),"Guruve South", "Guruve South");
	addOption(document.getElementById("constituency"),"Mazowe Central", "Mazowe Central");
	addOption(document.getElementById("constituency"),"Mazowe North", "Mazowe North");
	addOption(document.getElementById("constituency"),"Mazowe South", "Mazowe South");
	addOption(document.getElementById("constituency"),"Mazowe West", "Mazowe West");
	addOption(document.getElementById("constituency"),"Mbire", "Mbire");
	addOption(document.getElementById("constituency"),"Mt Darwin East", "Mt Darwin East");
	addOption(document.getElementById("constituency"),"Mt Darwin North", "Mt Darwin North");
	addOption(document.getElementById("constituency"),"Mt Darwin South", "Mt Darwin South");
	addOption(document.getElementById("constituency"),"Mt Darwin West", "Mt Darwin West");
	addOption(document.getElementById("constituency"),"Muzarabani North", "Muzarabani North");
	addOption(document.getElementById("constituency"),"Rushinga", "Rushinga");
	addOption(document.getElementById("constituency"),"Shamva North", "Shamva North");
	addOption(document.getElementById("constituency"),"Shamva South", "Shamva South");
}
if(document.constit.province.value == 'Mashonaland East'){
	addOption(document.getElementById("constituency"),"Chikomba Central", "Chikomba Central");
	addOption(document.getElementById("constituency"),"Chikomba East", "Chikomba East");
	addOption(document.getElementById("constituency"),"Chikomba West", "Chikomba West");
	addOption(document.getElementById("constituency"),"Goromonzi North", "Goromonzi North");
	addOption(document.getElementById("constituency"),"Goromonzi South", "Goromonzi South");
	addOption(document.getElementById("constituency"),"Goromonzi West", "Goromonzi West");
	addOption(document.getElementById("constituency"),"Maramba-Pfungwe", "Maramba-Pfungwe");
	addOption(document.getElementById("constituency"),"Marondera Central", "Marondera Central");
	addOption(document.getElementById("constituency"),"Marondera East", "Marondera East");
	addOption(document.getElementById("constituency"),"Marondera West", "Marondera West");
	addOption(document.getElementById("constituency"),"Mudzi North", "Mudzi North");
	addOption(document.getElementById("constituency"),"Mudzi South", "Mudzi South");
	addOption(document.getElementById("constituency"),"Mudzi West", "Mudzi West");
	addOption(document.getElementById("constituency"),"Murewa North", "Murewa North");
	addOption(document.getElementById("constituency"),"Murewa South", "Murewa South");
	addOption(document.getElementById("constituency"),"Murewa West", "Murewa West");
	addOption(document.getElementById("constituency"),"Mutoko East", "Mutoko East");
	addOption(document.getElementById("constituency"),"Mutoko North", "Mutoko North");
	addOption(document.getElementById("constituency"),"Mutoko South", "Mutoko South");
	addOption(document.getElementById("constituency"),"Seke", "Seke");
	addOption(document.getElementById("constituency"),"Uzumba", "Uzumba");
	addOption(document.getElementById("constituency"),"Wedza North", "Wedza North");
	addOption(document.getElementById("constituency"),"Wedza South", "Wedza South");
}
if(document.constit.province.value == 'Mashonaland West'){
	addOption(document.getElementById("constituency"),"Chakari", "Chakari");
	addOption(document.getElementById("constituency"),"Chegutu East", "Chegutu East");
	addOption(document.getElementById("constituency"),"Chegutu West", "Chegutu West");
	addOption(document.getElementById("constituency"),"Chinhoyi", "Chinhoyi");
	addOption(document.getElementById("constituency"),"Hurungwe Central", "Hurungwe Central");
	addOption(document.getElementById("constituency"),"Hurungwe East", "Hurungwe East");
	addOption(document.getElementById("constituency"),"Hurungwe North", "Hurungwe North");
	addOption(document.getElementById("constituency"),"Hurungwe West", "Hurungwe West");
	addOption(document.getElementById("constituency"),"Kadoma Central", "Kadoma Central");
	addOption(document.getElementById("constituency"),"Kariba", "Kariba");
	addOption(document.getElementById("constituency"),"Magunje", "Magunje");
	addOption(document.getElementById("constituency"),"Makonde", "Makonde");
	addOption(document.getElementById("constituency"),"Mhangura", "Mhangura");
	addOption(document.getElementById("constituency"),"Mhondoro - Mubaira", "Mhondoro - Mubaira");
	addOption(document.getElementById("constituency"),"Mhondoro - Ngezi", "Mhondoro - Ngezi");
	addOption(document.getElementById("constituency"),"Muzvezve", "Muzvezve");
	addOption(document.getElementById("constituency"),"Norton", "Norton");
	addOption(document.getElementById("constituency"),"Sanyati", "Sanyati");
	addOption(document.getElementById("constituency"),"Zvimba East", "Zvimba East");
	addOption(document.getElementById("constituency"),"Zvimba North", "Zvimba North");
	addOption(document.getElementById("constituency"),"Zvimba South", "Zvimba South");
	addOption(document.getElementById("constituency"),"Zvimba West", "Zvimba West");
}
if(document.constit.province.value == 'Masvingo'){
	addOption(document.getElementById("constituency"),"Bikita East", "Bikita East");
	addOption(document.getElementById("constituency"),"Bikita South", "Bikita South");
	addOption(document.getElementById("constituency"),"Bikita West", "Bikita West");
	addOption(document.getElementById("constituency"),"Chiredzi East", "Chiredzi East");
	addOption(document.getElementById("constituency"),"Chiredzi North", "Chiredzi North");
	addOption(document.getElementById("constituency"),"Chiredzi South", "Chiredzi South");
	addOption(document.getElementById("constituency"),"Chiredzi West", "Chiredzi West");
	addOption(document.getElementById("constituency"),"Chivi Central", "Chivi Central");
	addOption(document.getElementById("constituency"),"Chivi North", "Chivi North");
	addOption(document.getElementById("constituency"),"Chivi South", "Chivi South");
	addOption(document.getElementById("constituency"),"Gutu Central", "Gutu Central");
	addOption(document.getElementById("constituency"),"Gutu East", "Gutu East");
	addOption(document.getElementById("constituency"),"Gutu North", "Gutu North");
	addOption(document.getElementById("constituency"),"Gutu South", "Gutu South");
	addOption(document.getElementById("constituency"),"Gutu West", "Gutu West");
	addOption(document.getElementById("constituency"),"Masvingo Central", "Masvingo Central");
	addOption(document.getElementById("constituency"),"Masvingo North", "Masvingo North");
	addOption(document.getElementById("constituency"),"Masvingo South", "Masvingo South");
	addOption(document.getElementById("constituency"),"Masvingo Urban", "Masvingo Urban");
	addOption(document.getElementById("constituency"),"Masvingo West", "Masvingo West");
	addOption(document.getElementById("constituency"),"Mwenezi East", "Mwenezi East");
	addOption(document.getElementById("constituency"),"Mwenezi West", "Mwenezi West");
	addOption(document.getElementById("constituency"),"Zaka Central", "Zaka Central");
	addOption(document.getElementById("constituency"),"Zaka East", "Zaka East");
	addOption(document.getElementById("constituency"),"Zaka North", "Zaka North");
	addOption(document.getElementById("constituency"),"Zaka West", "Zaka West");
}
if(document.constit.province.value == 'Matabeleland North'){
	addOption(document.getElementById("constituency"),"Binga North", "Binga North");
	addOption(document.getElementById("constituency"),"Binga South", "Binga South");
	addOption(document.getElementById("constituency"),"Bubi", "Bubi");
	addOption(document.getElementById("constituency"),"Hwange Central", "Hwange Central");
	addOption(document.getElementById("constituency"),"Hwange East", "Hwange East");
	addOption(document.getElementById("constituency"),"Hwange West", "Hwange West");
	addOption(document.getElementById("constituency"),"Lupane East", "Lupane East");
	addOption(document.getElementById("constituency"),"Lupane West", "Lupane West");
	addOption(document.getElementById("constituency"),"Nkayi North", "Nkayi North");
	addOption(document.getElementById("constituency"),"Nkayi South", "Nkayi South");
	addOption(document.getElementById("constituency"),"Tsholotsho North", "Tsholotsho North");
	addOption(document.getElementById("constituency"),"Tsholotsho South", "Tsholotsho South");
	addOption(document.getElementById("constituency"),"Umguza", "Umguza");
}
if(document.constit.province.value == 'Matabeleland South'){
	addOption(document.getElementById("constituency"),"Beitbridge East", "Beitbridge East");
	addOption(document.getElementById("constituency"),"Beitbridge West", "Beitbridge West");
	addOption(document.getElementById("constituency"),"Bulilima East", "Bulilima East");
	addOption(document.getElementById("constituency"),"Bulilima West", "Bulilima West");
	addOption(document.getElementById("constituency"),"Gwanda Central", "Gwanda Central");
	addOption(document.getElementById("constituency"),"Gwanda North", "Gwanda North");
	addOption(document.getElementById("constituency"),"Gwanda South", "Gwanda South");
	addOption(document.getElementById("constituency"),"Insiza North", "Insiza North");
	addOption(document.getElementById("constituency"),"Insiza South", "Insiza South");
	addOption(document.getElementById("constituency"),"Mangwe", "Mangwe");
	addOption(document.getElementById("constituency"),"Matobo North", "Matobo North");
	addOption(document.getElementById("constituency"),"Matobo South", "Matobo South");
	addOption(document.getElementById("constituency"),"Umzingwane", "Umzingwane");
}
if(document.constit.province.value == 'Manicaland'){
	addOption(document.getElementById("constituency"),"Buhera Central", "Buhera Central");
	addOption(document.getElementById("constituency"),"Buhera North", "Buhera North");
	addOption(document.getElementById("constituency"),"Buhera South", "Buhera South");
	addOption(document.getElementById("constituency"),"Buhera West", "Buhera West");
	addOption(document.getElementById("constituency"),"Chimanimani East", "Chimanimani East");
	addOption(document.getElementById("constituency"),"Chimanimani West", "Chimanimani West");
	addOption(document.getElementById("constituency"),"Chipinge Central", "Chipinge Central");
	addOption(document.getElementById("constituency"),"Chipinge East", "Chipinge East");
	addOption(document.getElementById("constituency"),"Chipinge South", "Chipinge South");
	addOption(document.getElementById("constituency"),"Chipinge West", "Chipinge West");
	addOption(document.getElementById("constituency"),"Dangamvura Chikanga", "Dangamvura Chikanga");
	addOption(document.getElementById("constituency"),"Headlands", "Headlands");
	addOption(document.getElementById("constituency"),"Makoni Central", "Makoni Central");
	addOption(document.getElementById("constituency"),"Makoni North", "Makoni North");
	addOption(document.getElementById("constituency"),"Makoni South", "Makoni South");
	addOption(document.getElementById("constituency"),"Makoni West", "Makoni West");
	addOption(document.getElementById("constituency"),"Musikavanhu", "Musikavanhu");
	addOption(document.getElementById("constituency"),"Mutare Central", "Mutare Central");
	addOption(document.getElementById("constituency"),"Mutare North", "Mutare North");
	addOption(document.getElementById("constituency"),"Mutare South", "Mutare South");
	addOption(document.getElementById("constituency"),"Mutare West", "Mutare West");
	addOption(document.getElementById("constituency"),"Mutasa Central", "Mutasa Central");
	addOption(document.getElementById("constituency"),"Mutasa North", "Mutasa North");
	addOption(document.getElementById("constituency"),"Mutasa South", "Mutasa South");
	addOption(document.getElementById("constituency"),"Nyanga North", "Nyanga North");
	addOption(document.getElementById("constituency"),"Nyanga South", "Nyanga South");
}
if(document.constit.province.value == 'Midlands'){
	addOption(document.getElementById("constituency"),"Chirumanzu", "Chirumanzu");
	addOption(document.getElementById("constituency"),"Chirumanzu-Zibagwe", "Chirumanzu-Zibagwe");
	addOption(document.getElementById("constituency"),"Chiwundura", "Chiwundura");
	addOption(document.getElementById("constituency"),"Gokwe", "Gokwe");
	addOption(document.getElementById("constituency"),"Gokwe Kana", "Gokwe Kana");
	addOption(document.getElementById("constituency"),"Gokwe Mapfungautsi", "Gokwe Mapfungautsi");
	addOption(document.getElementById("constituency"),"Gokwe Sengwa", "Gokwe Sengwa");
	addOption(document.getElementById("constituency"),"Gokwe Sesame", "Gokwe Sesame");
	addOption(document.getElementById("constituency"),"Gokwe-Chireya", "Gokwe-Chireya");
	addOption(document.getElementById("constituency"),"Gokwe-Gumunyu", "Gokwe-Gumunyu");
	addOption(document.getElementById("constituency"),"Gokwe-Kabuyuni", "Gokwe-Kabuyuni");
	addOption(document.getElementById("constituency"),"Gokwe-Nembudziya", "Gokwe-Nembudziya");
	addOption(document.getElementById("constituency"),"Gweru Urban", "Gweru Urban");
	addOption(document.getElementById("constituency"),"Kwekwe Central", "Kwekwe Central");
	addOption(document.getElementById("constituency"),"Mberengwa East", "Mberengwa East");
	addOption(document.getElementById("constituency"),"Mberengwa North", "Mberengwa North");
	addOption(document.getElementById("constituency"),"Mberengwa South", "Mberengwa South");
	addOption(document.getElementById("constituency"),"Mberengwa West", "Mberengwa West");
	addOption(document.getElementById("constituency"),"Mbizo", "Mbizo");
	addOption(document.getElementById("constituency"),"Mkoba", "Mkoba");
	addOption(document.getElementById("constituency"),"Redcliff", "Redcliff");
	addOption(document.getElementById("constituency"),"Shurugwi North", "Shurugwi North");
	addOption(document.getElementById("constituency"),"Shurugwi South", "Shurugwi South");
	addOption(document.getElementById("constituency"),"Silobela", "Silobela");
	addOption(document.getElementById("constituency"),"Vungu", "Vungu");
	addOption(document.getElementById("constituency"),"Zhombe", "Zhombe");
	addOption(document.getElementById("constituency"),"Zvishavane Ngezi", "Zvishavane Ngezi");
	addOption(document.getElementById("constituency"),"Zvishavane Runde", "Zvishavane Runde");
}
}

function removeConstitOptions() {
document.getElementById('constituency').length = 0;
}