Just to rub it in Copernicus' face how wrong he is on this, here's a forum of police officers discussing this very issue with the consensus being that you cannot be detained for not letting someone check your receipt and that to try and detain you in any way without probable cause that you shoplifted something constitutes false imprisonment.
http://forums.officer.com/forums/showthread.php?t=72907