function showSendForm(id){ window.open('email' + id + '.html', 'email', 'width=400,height=380,top=200,left=200,Resizable=0,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 showSendCompanyNewsForm(id){ window.open('?emailnews=' + id, 'email', 'width=400,height=380,top=200,left=200,Resizable=0,status').focus(); return false; } function showBigMain1(url){ window.open(url, 'bigmain', 'width=660,height=436,top=200,left=200,Resizable=0,status').focus(); return false; } function showSmall1(url, wte_crt){ window.open(url + '&photo_id=' + wte_crt, 'small', 'width=360,height=287,top=200,left=200,Resizable=0,status').focus(); return false; } function showBigMain(id){ window.open('bigmain' + id + '.html', 'bigmain', 'width=660,height=436,top=200,left=200,Resizable=0,status').focus(); return false; } function showSmall(wte_crt){ window.open('small' + pageId + '.html?photo_id=' + wte_crt, 'small', 'width=360,height=287,top=200,left=200,Resizable=0,status').focus(); 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 check_subscription_form(form) { if (form.elements.email.value.indexOf("@")>0 && form.elements.email.value.indexOf("@")0) url+="&"; url+=form.elements[i].name+"="+form.elements[i].value; } document.layers[form.target].load(url,1); return false; } else { return false } } function enter(f){ if (f.set.checked){ setCookie('companylogin', f.login.value) setCookie('companypassword', f.password.value) }else{ setCookie('companylogin', '') setCookie('companypassword', '') } window.location.href = 'http://' + f.login.value + ':' + f.password.value + '@' + 'www.tiger-gun.ru/companyadmin/manage.html'; } function validatesearchsite(field){ if (field.value.length == 0 || field.value.replace(/ /gi,"").length < 2) { alert("Задан слишком общий критерий!\nВведите не менее 2 символов"); return false; } } function checkform(f, field){ if (f.elements[field].value == 'novalue'){ return false } return true } 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=400,height=420,top=200,left=200,Resizable=0,status"); } function getCookie(name) { var prefix = name + "=" var cookieStartIndex = document.cookie.indexOf(prefix) if (cookieStartIndex == -1) return '' var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length) if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)) } function setCookie(name, value) { document.cookie = name + "=" + escape(value)+"; path=/; expires=Thursday, 31-Dec-2020 23:59:59 GMT;"; }