I don't know if this is your answer, but at line 76 and 100 the variable avail is being defined and your error says that avail isn't defined.
As line 76 and 100 are in a section of code that is commented out you may want to try and put this code back in.
I cannot see avail being defined anywhere else in the code that isn't being take out.
|