to help us troubleshoot the problem, find the following line of code on the product details page:
var thepage = "Products_Detail_Lookup.php?GroupingID=<?php echo($row_GroupingRS["GroupingID"]); ?>&Options="+optionsArray.join(",");
and change it to:
var thepage = "Products_Detail_Lookup.php?GroupingID=<?php echo($row_GroupingRS["GroupingID"]); ?>&Options="+optionsArray.join(",");
alert(thepage);
this will cause a javascriot alert with information that we can use to see what is going wrong.