function ShowWin(url,x,y,name,isscrollbars) { var cx, cy; x=(x > screen.width * 0.7 ? screen.width * 0.7 : x); y=(y > screen.height * 0.7 ? screen.height * 0.7 : y); cx=screen.width/2-(x / 2); cy=screen.height/2-(y/2); isscrollbars=(isscrollbars=="no")?"no":"yes"; window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+isscrollbars+",top="+cy+",left="+cx); } function ShowWinS(url, x, y, scrl) { x=(x > screen.width * 0.7 ? screen.width * 0.7 : x); y=(y > screen.height * 0.7 ? screen.height * 0.7 : y); if(x == 0 || y == 0) return; var cx, cy, name; cx=screen.width/2 - (x/2); cy=screen.height/2-(y/2); name = getNameByDate(); window.open(url,name,"toolbar=no,status=no,directories=no,menubar=no,resizable=yes,width="+x+",height="+y+",scrollbars="+scrl+",top="+cy+",left="+cx); } function getNameByDate() { var s = ""; var d = new Date(); s += d.getFullYear(); s += (d.getMonth() + 1); s += d.getDate(); s += "_" + d.getHours(); s += d.getMinutes(); s += d.getSeconds(); return s; } var clientPC = navigator.userAgent.toLowerCase(); // Get client info var is_opera = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") != -1)); var is_ffox = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("firefox") != -1)); var is_ie = ((clientPC.indexOf("mozilla") != -1) && (clientPC.indexOf("msie") != -1) && !is_opera && !is_ffox); var is_moz = ((clientPC.indexOf("mozilla") != -1) && !is_ie && !is_opera && !is_ffox); if(is_moz || is_ffox) { document.write(''); } function MyResize() { return; var max_with = 1025; var tbm = document.getElementById("rlimit"); if(tbm != '' && tbm != null) { tbm.width = document.body.clientWidth < max_with ? 1 : document.body.clientWidth - max_with; tbm.style.width = document.body.clientWidth < max_with ? 1 : document.body.clientWidth - max_with; }} function MyOnLoad() { document.body.clientWidth; } function killPopups() { //прячем все открытие попапы if (timeout) clearTimeout(timeout) if (popups&&popups.length>0) { for (var i = 0; i