function showSendForm(id){ window.open('email' + id + '.html', 'email', 'width=400,height=400,top=200,left=200,Resizable=1,status').focus(); return false; } function showSendForm1(url, id){ window.open(url, 'email', 'width=400,height=380,top=200,left=200,Resizable=0,status').focus(); return false; } function validatesearch(){ if (document.search.q.value.length == 0 || document.search.q.value.replace(/ /gi,"").length < 2) { alert("Задан слишком общий критерий!\nВведите не менее 2 символов"); return false; } } function ShowAlt(event,href) { if(!href.title & !href.my_title) {return} div = document.getElementById('alt_hint') div.innerHTML = href.title if (href.title == '') { div.innerHTML = href.my_title } else { href.my_title = href.title } href.title = '' div.style.display='block'; div.style.visibility='visible'; div.style.left = event.clientX + document.body.scrollLeft + 10 div.style.top = event.clientY + document.body.scrollTop + 10 } function HideAlt(href) { document.getElementById('alt_hint').style.display='none'; document.getElementById('alt_hint').style.visibility='hidden'; } function ShowBigPhoto(name,com,url, width, height) { width = width; height = height; w = window.open('','','width=590,height=500,top=30,left=125,Resizable=0,Scrollbars=0'); w.document.open(); w.document.write('Грифон | '+name+''); w.document.write('
'+name+'
'+com+'Закрыть окно
'); w.document.close(); w.focus(); return false; } function open_picture(url,w,h) { max_width = 800; max_height = 600; if (window.screen) { max_width = window.screen.width - 20; max_height = window.screen.height - 53; } win_w = w + 16; win_h = h + 4; if (win_w > max_width) win_w = max_width; if (win_h > max_height) win_h = max_height; win = window.open("", "", "status=1, resizable=1, toolbar=1, scrollbars=1, width="+win_w+", height="+win_h); win.document.write(''); win.focus(); } function open_send(id) { window.open("/callback?id=" + id , "email", "width=350,height=450,top=200,left=200,Resizable=1,status"); } function validatesearchsite(field){ if (field.value.length == 0 || field.value.replace(/ /gi,"").length < 2) { alert("Задан слишком общий критерий!\nВведите не менее 2 символов"); return false; }}