AJAX Image Crop


I know how to use PHP, but I have no clue how to use AJAX. Having said that, I am trying to make an image crop like the one Facebook has, only I want it to be a certain size so I drag the crop window up and down the image to set what I want to be cropped.

Any help with this?