Account Number Customization

Account Number Customization

I have CRM set to auto generate an account number prefixed with a C for my client accounts.  How can I get CRM to change the prefix based on account type.  For example account numbers for clients should start with C whereas account numbers for vendors should start with V.