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('Enter your name!'); return false; } } if (headline.length < 2){ alert('Please fill in the subject!'); return false; } else if (message.length < 2){ alert('Please fill in the message body!'); return false; } else { return true; }; } function load_datepicker_settings() { if(window.jQuery){ jQuery(function($){ $.datepicker.regional['ee'] = {clearText: 'clear', clearStatus: '', closeText: 'close', closeStatus: '', prevText: '«', prevStatus: '', nextText: '»', nextStatus: '', currentText: 'today', currentStatus: '', monthNames: ['January','February','March','April','May','June', 'July','August','September','October','November','December'], monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 'Jul','Aug','Sep','Okt','Nov','Dec'], monthStatus: '', yearStatus: '', weekHeader: 'Ve', weekStatus: '', dayNamesShort: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'], dayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'], dayNamesMin: ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'], dayStatus: 'DD', dateStatus: 'D, M d', dateFormat: 'dd.mm.yy', firstDay: 1, initStatus: '', showOtherMonths: true, speed: '', isRTL: false}; }); $.datepicker.setDefaults($.datepicker.regional['ee']); } }