Look for stores with "TAX FREE" signs in them, and they should be able to supply the forms for you, filled out by them. As long as you spend at least 15,000 ptas in 1 place you are eligible to get your tax money back. (If you spend 5,000 in 3 places, I don't believe you are then eligible to get your tax money back, or you'd have to fill out some other paperwork yourself that I am not aware of.)
If you are leaving Spain via Madrid-Barajas Airport, you must bring the filled out paperwork to the 'IVA' desk--a small window located to the left just as you go thru the central passport control area-- they will stamp etc, and you can either pop it right in the mail there (if you'll be getting it back via credit card or check) or then go across the isle and get your money back (in pesetas) from another desk. It's really not too difficult, and it's worth it in the end!
_________________________
"Vivir con miedo es como vivir a medias."