
/**
 *
 * @access public
 * @return void
 **/
function updateCandidateFindSelector(){
    var find = document.getElementById('selCandidateFind').value;

    switch(find) {

        case 'name':
          document.getElementById('frmCandidateFind').action = '/candidates/find';
          break;
        case 'location':
          document.getElementById('frmCandidateFind').action = '/candidates/area_find';
          break;
        case 'constituency':
          document.getElementById('frmCandidateFind').action = '/candidates/constituency_find';
          break;
        case 'election':
          document.getElementById('frmCandidateFind').action = '/candidates/election_find';
          break;
        case 'party':
          document.getElementById('frmCandidateFind').action = '/candidates/party_find';
          break;
        default:
          break;


    }//end of switch


}





addOnChangeEvent('selCandidateFind', 'updateCandidateFindSelector');