When you say 'erased', what do you mean? Do you mean all your apps, photographs, videos and the entire operating system were deleted? I, too, have taken my iPad through airport security and had no issues, so I'm interested in what went on here.
I was sorry to hear about this; I'm sure it was a real pain, to say the least.
Tim
Scotland