A rectangle is equidecomposable with a square of equal area. It follows that two rectangles of equal area are equidecomposable. The applet illustrates a little different and probably more economical way to prove this fact. Each of the two rectangles can be split into two equal triangles and a parallelogram. In fact, all four triangles are equal, whereas the parallelograms have a common base and the height. These, as we know, are equidecomposable.
Assume the triangles have sides a, b and c, d, so that ab = cd. Assuming a < b and c < d, we also get a < d and c < b. This allows one to cut right triangles with legs a and c off each of the rectangles. The remaining parallelograms have a base (a2 + c2) and equal areas and, therefore, are equidecomposable.