java/src/messenger/webim/js/source/survey.js
2012-03-09 19:40:07 +00:00

25 lines
668 B
JavaScript

/**
* @preserve This file is part of Mibew Messenger project.
* http://mibew.org
*
* Copyright (c) 2005-2011 Mibew Messenger Community
* License: http://mibew.org/license.php
*/
var SurveyForm = Class.create();
Class.inherit(SurveyForm, ClientForm, {
checkFields: function() {
if(this.form.email == null || this.form.email.getAttribute('type') == 'hidden') {
return null;
}
if(! this.emailIsValid(this.form.email)){
return this.localizedStrings.wrongEmail || '';
}
return null;
}
});
EventHelper.register(window, 'onload', function(){
Survey = new SurveyForm(document.surveyForm);
Survey.localize(localizedStrings);
});