One thing I notice is that in your checking code, you're running a for loop using the "no" variable that is not defined anywhere in the local scope. Define that and let's see how it works.
Lusiphur commented: Thanks :) Good input +1
Sodabread 88 Posting Whiz in Training
Sodabread 88 Posting Whiz in Training
jonsca commented: Good explanation +4