// JavaScript Document

function searchSelect() {
	var select = document.getElementsByTagName('select');
	for(var x=0;x<select.length;x++) {
		if(select[x].className.match('selectLinks')) {
			select[x].onchange = function() {
				goToFromOption(this.options[this.selectedIndex]);	
			}
		}
	}
}

function goToFromOption(option) {
	//if(option.value.match(/^\/.[a-z].*$/))
	if(option.value.length > 0) {
		if(option.getAttribute('target') == '_blank')
			window.open(option.value);
		else
			window.location = option.value;
	}
}