
/**
 *
 * @access public
 * @return void
 **/
function updateFindAllSelector(){

	var find = document.getElementById('selFindAll').value;

    switch(find) {

        case 'answers':
          document.getElementById('frmCandidateFind').action = '/answers/find';
          break;
        case 'candidates':
          document.getElementById('frmCandidateFind').action = '/candidates/find';
          break;
        case 'locations':
          document.getElementById('frmCandidateFind').action = '/candidates/area_find';
          break;
        case 'constituencies':
          document.getElementById('frmCandidateFind').action = '/candidates/constituency_find';
          break;
        case 'elections':
          document.getElementById('frmCandidateFind').action = '/candidates/election_find';
          break;
        case 'questions':
          document.getElementById('frmCandidateFind').action = '/questions/find';
        case 'parties':
          document.getElementById('frmCandidateFind').action = '/candidates/party_find';
          break;
        default:

          document.getElementById('frmCandidateFind').action = '/find';


    }//end of switch

}

addOnChangeEvent('selFindAll', 'updateFindAllSelector');
document.getElementById('findAll').focus();

