Ajax code in OpenCart

Hi all, I am new with AJAX, and when trying to hack the core file of Open Cart I met a problem with one javascript block of code.

Thise code deal with checkout process in Open Cart 1.5.1.3. I have read through all of them but don’t understand much.

So can you tell me how it work just before the REGISTER field (line 1-147).
Thank so much!

If you want to learn how ajax works, some recommended books on the topic are Bulletproof Ajax or [url=“http://www.sitepoint.com/books/ajax1/”]Build Your Own AJAX Web Applications

jQuery’s Ajax API can be useful too, but it doesn’t really help you to understand how it all goes together, although there are some online resources that help to provide an explanation, such as:

Thanks for your answer