// Strip all non-alpha characters
// Internet explorer doesn't support replace() method
function AlphaOnly(str)
{
	var rv = ""
	var c
	var i
	for (i = 0; i < str.length; i++)
	{
		c = str.charCodeAt(i)
		if ((c >= 97) && (c <= 122))
		{
			rv += String.fromCharCode(c)
		}
	}
	return rv
}

function SelectLink(sel, ext)
{
	var x=document.getElementById(sel).selectedIndex;
	var y=document.getElementById(sel).options;
	var str = y[x].text
	str = str.toLowerCase()
	var link = AlphaOnly(str)
	link += '.'
	link += ext
	window.location=link
}

