undefined problem

undefined problem

Hi,

i have a script here who assigns some functions to divs (if you click them). The thing is that if i call a site where i don't have this divs I get errors like option.back[0] is undefined.

Is this script wrong written by the guy who made it?