$(document).ready(function(){
	setSearchOfficeListener();
});

function setSearchOfficeListener(){
	$('#selectOffice_btn')[0].onclick = clickSearchOfficeHand;
}

function clickSearchOfficeHand(e){
	selectDropDown = $("select#officeSelect")[0];
	
	dropVal = selectDropDown.options[selectDropDown.selectedIndex].value;

	if(dropVal.length > 1){
		$(".bracoForm").attr("action", dropVal).submit();
	}
}
