var modelSelector;var contactForm;window.addEvent("load",function(){modelSelector=new DrilldownManager("modelSelector");modelSelector.setChangeHandler(optionChanged);contactForm=new FormManager("contactForm");contactForm.required("firstName","lastName","subject","message","category","machine","speedOrCapacity");contactForm.addHandler("email",function(){var a=$("emailReminder");if(!Validation.email(this.value)){a.hide();contactForm.error(this,"Please supply a valid e-mail address so that we can reply to your message.")}else{a.getElement("span").update(this.value);a.show()}});contactForm.focus()});function optionChanged(a){var b=a.options[a.selectedIndex].value;if(modelSelector.hasDependents(a)){new Request.AjaxIO("updateImmediateDependents",{onSuccess:function(c){modelSelector.updateDependent(b,c)}}).send(b);return true}return false};