Drag and drop function

I am trying to create a drag and drop action. I got it done, you can see it at

http://www.gwana.net/clients/merck2/slide16.swf

However, what needs to happen, is rather than counting each element when correctly placed, I need to set it up so that the user will drag and drop all of the elements, then press a submit button, which will then let the user know if they were all correct. If incorrect sort, then it will give a wrong answer animation then reset itself. Does anybody know how to do this?

Thanks.