var thePriceField = "$"+ getFromRSDump(theRet,"ProductPrice");
is referencing the ProductPrice column in the recordset that is created on the detail lookup page.
I dont believe you are on the right track for what you are trying to accomplish, and we will not able to offer support for it.