unique id for students

unique id for students

Hi,

I want to create unique Id on load for every new form.  Based on old record value I need to create..
for example:   1 )  If I created one rec with EEE-0001, 

2) Next record need to show on load side with EEE-0002



Can any one help me in doing this