window.addEvent('load', function() { document.id('division').addEvent('change', function(){ if(document.id('division').get('value') == 'US'){ document.id('topic').empty(); new Element('option', {'value': 'us_general', 'text': 'General Inquires'}).inject(document.id('topic')); new Element('option', {'value': 'us_cs', 'text': 'Customer Service'}).inject(document.id('topic')); new Element('option', {'value': 'us_website', 'text': 'Website Comments'}).inject(document.id('topic')); new Element('option', {'value': 'us_employment', 'text': 'Employment Opportunities'}).inject(document.id('topic')); new Element('option', {'value': 'us_sponsorship', 'text': 'Sponsorship Requests'}).inject(document.id('topic')); document.id('topic').fireEvent('change'); } if(document.id('division').get('value') == 'AU'){ document.id('topic').empty(); new Element('option', {'value': 'au_general', 'text': 'General Inquires'}).inject(document.id('topic')); new Element('option', {'value': 'au_cs', 'text': 'Customer Service'}).inject(document.id('topic')); new Element('option', {'value': 'au_website', 'text': 'Website Comments'}).inject(document.id('topic')); new Element('option', {'value': 'au_accounts', 'text': 'Accounts'}).inject(document.id('topic')); new Element('option', {'value': 'au_technical', 'text': 'Technical Information'}).inject(document.id('topic')); document.id('topic').fireEvent('change'); } if(document.id('division').get('value') == 'CA'){ document.id('topic').empty(); new Element('option', {'value': 'ca_general', 'text': 'General Inquires'}).inject(document.id('topic')); new Element('option', {'value': 'ca_technical', 'text': 'Technical'}).inject(document.id('topic')); document.id('topic').fireEvent('change'); } if(document.id('division').get('value') == 'UK'){ document.id('topic').empty(); new Element('option', {'value': 'uk_general', 'text': 'General Inquires'}).inject(document.id('topic')); document.id('topic').fireEvent('change'); } }); });