function assist_strings() { var index1 = document.forms[0].string1.selectedIndex; var index2 = document.forms[0].string2.selectedIndex; var string1 = eval ("document.forms[0].string1.options[" + index1 + "].value"); var string2 = eval ("document.forms[0].string2.options[" + index2 + "].value"); document.forms[0].strings.value = document.forms[0].strings_first.value + "\n" + string1 + "\n" + string2; } function assist_select (num) { var string = eval ('document.forms[0].strings_' + num + '.value'); document.forms[0].strings.value = document.forms[0].strings_first.value + "\n" + string; document.forms[0].strings.focus(); self.location = '#chosen'; } function assist (start) { document.forms[0].start.value = start; document.forms[0].submit(); } function calendar(year, month, day) { document.forms[0].year.value = year; document.forms[0].month.value = month; document.forms[0].day.value = day; document.forms[0].submit(); } function encyclopedia(word) { document.forms[0].action = '/cgi-bin/encyclopedia.pl'; document.forms[0].word.value = word; document.forms[0].submit(); } function list(val) { document.forms[0].list.value = val; document.forms[0].submit(); } function cert(link) { document.forms[0].link.value = link; document.forms[0].submit(); } function remove(link) { document.forms[1].link.value = link; document.forms[1].submit(); } function removephoto() { document.forms[0].mode.value = 'removephoto'; document.forms[0].submit(); } function decodeMail(text) { var elements = reverseText(text).split('<~>'); document.write(buildTag(elements[0], elements[1], elements[2])); } function buildTag(email, text, title) { return '' + ((text) ? text : email) + ''; } function reverseText(text) { var str = ''; for (var i = text.length - 1; i >= 0; i--) str += text.charAt(i); return str; } function litradio(q) { var winwidth = screen.availWidth; var winheight = screen.availHeight; var winleft = winwidth - 340; var wintop = winheight - 250; var link; if (q == 32) { link = "/radio/litradio/low.html"; } else { link = "/radio/litradio/high.html"; } window.open(link,"litradio",'left='+winleft+',top='+wintop+',width=300,height=150,scrollbars=no,fullscreen=no,resizable=no'); } function staroeradio(q) { var winwidth = screen.availWidth; var winheight = screen.availHeight; var winleft = winwidth - 340; var wintop = winheight - 250; if (q == 32) { link = "/radio/staroeradio/low.html"; } else { link = "/radio/staroeradio/high.html"; } window.open(link,"litradio",'left='+winleft+',top='+wintop+',width=300,height=250,scrollbars=no,fullscreen=no,resizable=no'); } function complain(post) { document.forms[0].action = '/cgi-bin/complain.pl'; document.forms[0].post.value = post; document.forms[0].submit(); } function remove_rec(post) { if(confirm('Удалить эту рецензию?')) { self.location='/cgi-bin/form.pl?type=message_remove&message=' + post; } } function remove_notes(post, author, num) { if(confirm('Удалить эти замечани?')) { self.location='/cgi-bin/form.pl?type=notes_remove&message=' + post + '&author=' + author + '&num=' + num; } }