This doesn't make sense on a couple of levels:
Code:
onclick="s_objectID="javascript:fnAddItemToCartWithAccessories('1218308267319','2074657')_1";return this.s_oc?this.s_oc(e):true"
(1) If you use
javascript: in an event handler, it must be the very first thing.
That is,
onclick="javascript:..."
(2) You have " marks *INSIDE* of a "..." string.
HTML will hiccup on that and it will never get to javascript.
HTML sees your code there like this:
Code:
onclick="s_objectID="
javascript:fnAddItemToCartWithAccessories('1218308267319','2074657')_1
";return this.s_oc?this.s_oc(e):true"
As three distinct separate elements.
It has no idea what to do with the 2nd or 3rd of those.