// -------- Версия 3.srv -------- function VoidTrue() { return true; } function VoidFalse() { return false; } window.onerror = VoidTrue; if (self.parent.frames.length != 0) self.parent.location=document.location; isNS = (navigator.appName == "Netscape"); isIE4 = (navigator.appName == "Microsoft Internet Explorer") && parseInt(navigator.appVersion) >= 4; ver4 = parseInt(navigator.appVersion) >= 4; ok = document.images != null; function Refresh() { window.location.reload() } function SetImg(img,ref,txt) { if (ok) document.images[img].src = ref; if (txt != null) window.status = ' ' + txt; return ok; } win_mail = null; function openMail(addr) { if (typeof addr == 'undefined') addr = ''; else addr = '?'+addr; if (win_mail == null || win_mail.closed) win_mail = window.open('http://www.museum.ru/mail.asp'+addr,'mail','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=500,height=400'); else win_mail.focus(); return false; } win_help = null; function openHelp(theme) { if (typeof theme == 'undefined') theme = ''; else theme = '?'+theme; if (win_help == null || win_help.closed) win_help = window.open('http://www.museum.ru/help.asp'+theme,'help','menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=700,height=500'); else win_help.focus(); return false; } win_vote = null; function openVote(id) { if (typeof id != 'undefined') if (win_vote == null || win_vote.closed) win_vote = window.open('http://www.museum.ru/web/vote.asp?id='+id+'&ref='+location.href,'vote','menubar=no,location=no,resizable=yes,status=no,width=300,height=200'); else win_vote.focus(); return true; } win_reg = null; function openReg(url) { document.cookie = (typeof url != 'undefined')? 'Back='+url+'; path=/' : 'Back=; path=/'; if (win_reg == null || win_reg.closed) win_reg = window.open('http://www.museum.ru/reg.asp','reg','menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=600,height=450'); else win_reg.focus(); return false; } win_chat = null; function openChat() { lgn=(typeof lgn == 'undefined')? '' : '?'+lgn; if (win_chat == null || win_chat.closed) win_chat = window.open('http://www.museum.ru/forum/chat.asp','chat','menubar=no,location=no,resizable=yes,scrollbars=no,status=no,width=450,height=450'); else win_chat.focus(); return false; }