Hi Aaron,
Just a tip since this is your first post: when posting code to the public domain, it is usually courteous to indicate the original author (even if the original code did not include an authors note, it is dutiful to indicate the source if it is known to you), else the posted code is assumed to be your own.
Lee