
/************************************************

Script for Foot Conditions dropdown-nav options

- Initiated by a "Go there"-type button.
- Takes a foot problem identified from a drop-down
select menu and turns it into a URL which it then 
opens in the browser.

NB: Expected to need to develop this a bit further
so that how far up/down in the directory structure
we are can be handled, as this menu will appear in
different parts of the site.

*************************************************/


function navToPage(form) {
	var selectedProblem = form.conditions.options[form.conditions.selectedIndex].value;
	window.location = "/conditions/" + selectedProblem + ".html";
}