﻿function MM_jumpMenu(selObj){
var id=document.location.toString().split("?");
	id=id[0];
	id=id.replace('#','');
	id+="?Year=";
	
	var faqID=document.getElementById("YearID");
	var faqIndex=document.getElementById("YearID").selectedIndex;
	if(faqIndex!=0)
	{
	window.location=id+selObj.options[selObj.selectedIndex].text;
	}
	else
	{
	window.location=id;
	}
    }
    
    function setSelected()
    {
	var id=document.location.toString().split("?Year=");
	year=id[1];	
	  var myElement =document.getElementById('YearID'); 
	       for (var i=0; i< myElement.options.length; i++)
	       {
	       	if(myElement.options[i].text== decodeURI(year))
	       	{
	       		myElement.selectedIndex=i;
	       	}
        	}	
    }
    
function redirectYear(drpYear)
{
	
	var url=document.location.toString().split("?");

	var yearindex_1=drpYear.selectedIndex;
	var selectedyear_1="";
	if(yearindex_1 !=0)
	{
		selectedyear_1=drpYear[yearindex_1].text;
	}
	if(selectedyear_1 !='')
		window.location=url[0]+"?Year="+selectedyear_1;
	else
		window.location=url[0];


}	

setSelected();

