YAHOO.util.Event.onDOMReady(function() {    
    new EmailForm("email_form");
});
var EmailForm = function(el) {
    this.init(el);
}
YAHOO.extend(EmailForm, Form, {
    
    initFields: function() {
        this.addField(YAHOO.util.Dom.get("email_form_from"), ["not_empty"]);
        this.addField(YAHOO.util.Dom.get("email_form_email"), ["not_empty", "valid_email"]);
        this.addField(YAHOO.util.Dom.get("email_form_confirm_email"), ["not_empty", "valid_email", "match_email"]);
        this.addField(YAHOO.util.Dom.get("email_form_message"), ["not_empty"]);
        this.addField(YAHOO.util.Dom.get("email_form_subject"), ["not_empty"]);
        this.addField(YAHOO.util.Dom.get("email_form_city"), ["not_empty"]);
        this.addField(YAHOO.util.Dom.get("email_form_province_state"), ["not_empty"]);    
        new MultipleFilesInput("email_form_attachments");
    }
    
});
