function checkForumFields(variant){ // variant=1 => check message body, autor, headline // variant=2 => check message body, headline if (variant==1){autor = document.forumFrm.nimi.value;} headline = document.forumFrm.pealkiri.value; message = document.forumFrm.text.value; if (variant==1){ if (autor.length < 2){ alert('Введите ваше имя!'); return false; } } if (headline.length < 2){ alert('Введите заголовок сообщения!'); return false; } else if (message.length < 2){ alert('Введите текст сообщения!'); return false; } else { return true; }; } function load_datepicker_settings() { if(window.jQuery){ jQuery(function($){ $.datepicker.regional['ee'] = {clearText: '', clearStatus: '', closeText: '', closeStatus: '', prevText: '', prevStatus: '', nextText: '', nextStatus: '', currentText: 'Сегодня', currentStatus: '', monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aug','Sep','Okt','Nov','Dec'], monthStatus: '', yearStatus: '', weekHeader: 'Ve', weekStatus: '', dayNamesShort: ['Вскр','Пнд','Вт','Чт','Ср','Пт','Сб'], dayNames: ['','','','','','',''], dayNamesMin: ['Вскр','Пнд','Вт','Чт','Ср','Пт','Сб'], dayStatus: 'DD', dateStatus: 'D, M d', dateFormat: 'dd.mm.yy', firstDay: 1, initStatus: '', showOtherMonths: true, speed: '', isRTL: false}; }); $.datepicker.setDefaults($.datepicker.regional['ee']); } }