function ShowWin(url,x,y,name,isscrollbars) { x = (x > 800 ? 800 : x); y = (y > 600 ? 600 : 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) { 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; } function MyResize() { var max_with = 1100; var w = document.body.clientWidth < max_with ? 1 : document.body.clientWidth - max_with; var tbm = document.getElementById("rlimit"); if(tbm != '' && tbm != null) { tbm.width = w; tbm.style.width = w; SetCookie("kvlimit", w); } } function SetCookie(sName, sValue) { var expiredays = 1; var todayDate = new Date(); todayDate.setTime(todayDate.getTime() + expiredays * 24 * 60 *60 *1000); document.cookie = sName + "=" + escape(sValue) + "; expires=" + todayDate.toGMTString()+"; path=/"; }