var search_cnt = 0;var thisval=0;function login_site_user_js() {    JsHttpRequest.query(      lang_prefix+'/forum/login.html?rand='+Math.random(10000),       {        'login_sp': document.getElementById('login_sp').value,        'pass_sp': document.getElementById('pass_sp').value      },      function(result, errors) {            if(!result["result_var"]){                    alert('Неправильный логин или пароль!');            } else document.location = '/ru/forum';      }    );}function register_js() {                       JsHttpRequest.query(            lang_prefix+'/forum/register.html?rand='+Math.random(10000),            {                                'pass':  document.getElementById('reg_pass_reg').value,                'pass2': document.getElementById('reg_pass2_reg').value,                'email': document.getElementById('reg_email_reg').value,                'phone': document.getElementById('reg_phone_reg').value,                'code':  document.getElementById('reg_code_reg').value,                'fio':  document.getElementById('last_name_reg').value,                'nik':  document.getElementById('nik_reg').value,                'profi':  document.getElementById('profi_reg').value,                'company':  document.getElementById('company_reg').value,                'country':  document.getElementById('country_reg').value            },            function(result, errors) {                               if(result["error_var"]=='OK'){                    document.location = lang_prefix+'/forum';                 } else {                                                      alert(result["error_var"]);                              }            }        );        }function printdiv(id){		MiniWin=window.open ('MiniWin', 'MiniWin', '980, 590 , scrollbars=yes, resizable=yes');		MiniWin.document.open();		Today = new Date();		MiniWin.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><TITLE>Print</TITLE><link rel="stylesheet" href="/res/style.css" type="text/css"></HEAD><style>body, td, div{font-family: tahoma, verdana, arial, sans-serif;font-size: 12px;color:#0059B4;}body{padding:0px; margin-left:5px; margin:0px; margin-left:5px; background-color:#f9f9fa}form{margin:0px}a{text-decoration:none; color:#0059B4}a:hover{text-decoration:underline}.foo{font-size: 11px; color:#0059B4}.apdd{padding-top:10px;}</style><BODY leftmargin=0 topmargin=0><div align=left><table width="100%" style="border-bottom:1px solid #2c2a70; margin-bottom:30px;"><tr><td width="100%" style="margin-bottom:60px;"><table><tr><td><img src="/res/logo'+lang_prefix+'.gif" width=240 height=81 border=0 alt="" style="margin-right:40px;"></td><td><table><tr><td align=left style="color:#000; line-height:1.5; border-left:2px solid #2c2a70; padding-left:40px;  padding-right:40px;"><a href="mailto:info@bulavka.com.ua">info@bulavka.com.ua</a><br><a href="http://www.bulavka.com.ua">www.bulavka.com.ua</a></td><td style="padding-left:40px; color:#000"></td></tr></table></td></tr></table></td></tr></table><div id="contents" align=center style="width:980px"></div></div></BODY></HTML>');		MiniWin.document.close();		MiniWin.focus();		alert('Печать');		MiniWin.document.getElementById('contents').innerHTML=document.getElementById(id).innerHTML; MiniWin.print();}