function openDir(form) { 

	var newIndex = form.fieldname.selectedIndex; 
	var newValue = form.fieldname.options[newIndex].value;

	if(newValue != ''){
		window.open(newValue); 
	}

} 

