I see a space in one line, but looking again at code, I don't see an actual space
if ((strpos((",".ValidatedField('ProductsUpdate','ProductsUpdate').","), "," . "3" . ",") !== false || "3" == "")) {
Put in a text cleaner to see if it removes space when pasting here
if ((strpos((",".ValidatedField('ProductsUpdate','ProductsUpdate').","), ",". "3". ",")!== false || "3" == "")) {