	function GetQueryStrings(){
var QueryStrings= document.location.href.substring(document.location.href.indexOf('?'),document.location.href.length);
var SelectedLocation= QueryStrings.substring(QueryStrings.indexOf('&Location=')+10,QueryStrings.length);

var SelectedSector= QueryStrings.substring(QueryStrings.indexOf('&Sector=')+8,QueryStrings.indexOf('&Location='));


ChangeDrpSelect('drpSectors', SelectedSector);
ChangeDrpSelect('drpLocations', SelectedLocation);
}

function ChangeSectors()
{
var CurrentURL= document.location.href.substring(0,document.location.href.indexOf('?'));
var MySectors= document.getElementById('drpSectors');
var SelectedSector = MySectors.options[MySectors.selectedIndex].value;

var MyLocations= document.getElementById('drpLocations');
var SelectedLocation = MyLocations.options[MyLocations.selectedIndex].value;

var QueryStrings= "?&Sector="+SelectedSector+"&Location="+SelectedLocation;

var CurrentURL=CurrentURL+QueryStrings;
window.location= CurrentURL;
}


function ChangeDrpSelect(drpID, val)
{
var DropDown= document.getElementById(drpID);
for(i=0;i<DropDown.options.length;i++)
{
if(DropDown.options[i].value==val)
{document.getElementById(drpID).selectedIndex=i;
break;
}
}

}

