So, I guess I'm not sure I understand setuid. The script had worked just fine until Centos updated to 5.3 and now it has stopped working.
From what I've gleaned online, you can still run a setuid script if you clean any outside information (in my case, the arguments passed with the script). That's what I thought I had done but apparently that's not all there is to it. What else needs to be done?