It's called en passant. Look it up in the chess rules & basics under the learn tab for a clearer description than I can give. Annoyed the hell out of me the first time I saw it done(I was on the receiving end of course).
ok thanks