Error: [Exception... "'Control.Tabs could not find the element: main_tabs' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: http://mysite.com/folder/javascriptfile.js44] :: anonymous :: line 265" data: no]
Source File: http://mysite.com/folder/javascriptfile.js
Line: 265

Code JavaScript:
>264			if (document.createEvent) {
>265				element.dispatchEvent(event);
>266			} else {
>267				element.fireEvent(event.eventType, event);
>268			}
 
			return Event.extend(event);
		}
	};
})());