<!--
function getURL(x,site) {
	// the following looks for the dummy value
	if (x.options[x.selectedIndex].value == "" || x.options[x.selectedIndex].value == "dummy") {
		return false;
	// the following looks for an email link
	} else if (x.options[x.selectedIndex].value.indexOf("@") != -1 && x.options[x.selectedIndex].value.indexOf("mailto:") != -1) {	
		top.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to calendar_data pages
	} else if (x.options[x.selectedIndex].value.indexOf('/calendar/') != -1) {
		top.document.location.href = x.options[x.selectedIndex].value;
	} else if (x.options[x.selectedIndex].value.indexOf('https://www.unbc.ca') != -1 && x.options[x.selectedIndex].value.indexOf('calendar_data') != -1) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to files on web.unbc.ca
	} else if (x.options[x.selectedIndex].value.indexOf('http://web.unbc.ca') != -1) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to web files (.htm or .html) in another directory
	} else if (x.options[x.selectedIndex].value.indexOf('/'+site+'/') == -1 && x.options[x.selectedIndex].value.indexOf('.pdf') == -1 && (x.options[x.selectedIndex].value.indexOf('.htm') != -1 || x.options[x.selectedIndex].value.indexOf('.html') != -1)) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to directories within the current directory
	} else if (x.options[x.selectedIndex].value.indexOf('/'+site+'/') != -1 && x.options[x.selectedIndex].value.substring(('/'+site+'/').length).indexOf('/') != -1 && (x.options[x.selectedIndex].value.indexOf('.htm') == -1 || x.options[x.selectedIndex].value.indexOf('.html') == -1)) {
		parent.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to .htm or .html files wihtin directories within the current directory
	} else if (x.options[x.selectedIndex].value.indexOf('/'+site+'/') != -1 && x.options[x.selectedIndex].value.substring(('/'+site+'/').length).indexOf('/') != -1 && (x.options[x.selectedIndex].value.indexOf('.htm') != -1 || x.options[x.selectedIndex].value.indexOf('.html') != -1)) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to the current directory
	} else if (x.options[x.selectedIndex].value.indexOf('/'+site+'/') != -1 && x.options[x.selectedIndex].value.indexOf('.pdf') == -1 && x.options[x.selectedIndex].value.indexOf('.htm') == -1 && x.options[x.selectedIndex].value.indexOf('.html') == -1) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to web files (.htm or .html) within the current directory
	} else if (x.options[x.selectedIndex].value.indexOf('/'+site+'/') != -1 && x.options[x.selectedIndex].value.indexOf('.pdf') == -1) {
		top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	// the following looks for links to pdf files
	} else if (x.options[x.selectedIndex].value.indexOf('.pdf') != -1) {
		//top.document.location.href == document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
		parent.document.location.href = x.options[x.selectedIndex].value;
	// if none of the above conditions are matched, send link to top of current window
	} else {
		top.document.location.href = document.location.href ? top.document.location.href = x.options[x.selectedIndex].value : parent.main.document.location.href = x.options[x.selectedIndex].value;
	}
}
//-->

