				function fillCategory(){ 
				 // this function is used to fill the category list on load
				addOption(document.frmFilter.yearFilter, "Technical Articles", "Technical Articles", "");
				addOption(document.frmFilter.yearFilter, "News Headlines", "News Headlines", "");
				addOption(document.frmFilter.yearFilter, "Videos", "Videos", "");
				}
				
				function PressReleaseFilter(){
				// ON selection of category this function will work
				
				removeAllOptions(document.frmFilter.categoryFilter);
				
				if(parseInt(document.frmFilter.yearFilter.value) >= '2009'){
				addOption(document.frmFilter.categoryFilter,"All", "All");
				addOption(document.frmFilter.categoryFilter,"Advocacy & Policy", "Advocacy & Policy");
				addOption(document.frmFilter.categoryFilter,"Honors & Achievements", "Honors & Achievements");
				addOption(document.frmFilter.categoryFilter,"Memorials", "Memorials");
				}
				else {
				addOption(document.frmFilter.categoryFilter,"All", "All");
				}
				
				}
				
	
								
				////////////////// 
				
				function removeAllOptions(selectbox)
				{
					var i;
					for(i=selectbox.options.length-1;i>=0;i--)
					{
						//selectbox.options.remove(i);
						selectbox.remove(i);
					}
				}
				
				
				function addOption(selectbox, value, text )
				{
					var optn = document.createElement("OPTION");
					optn.text = text;
					optn.value = value;
				
					selectbox.options.add(optn);
				}
