What's the select doing in this line:
Code:
Case $Product = "None" Select $x=0



That's gonna cause you problems too.