1 function checkform(e) {
3 if (document.getElementById('surveyform')) {
4 var surveyform = document.getElementById('surveyform');
5 for (var i=0; i < surveycheck.questions.length; i++) {
6 var tempquestion = surveycheck.questions[i];
7 if (surveyform[tempquestion['question']][tempquestion['default']].checked) {
13 alert(M.str.survey.questionsnotanswered);
14 YAHOO.util.Event.preventDefault(e);
21 function survey_attach_onsubmit() {
22 if (document.getElementById('surveyform')) {
23 var surveyform = document.getElementById('surveyform');
24 YAHOO.util.Event.addListener('surveyform', "submit", checkform);