function showText(id) { document.getElementById('link_' + id + '_off').style.display = 'none'; document.getElementById('link_' + id + '_on').style.display = 'block'; document.getElementById('text_' + id).style.display = 'block'; } function hideText(id) { document.getElementById('link_' + id + '_off').style.display = 'block'; document.getElementById('link_' + id + '_on').style.display = 'none'; document.getElementById('text_' + id).style.display = 'none'; } function authIndex() { var wdbcw = window.document.body.clientWidth; var wdbch = screen.height; var to_x_m = parseInt((wdbcw/4)-150); var to_y_m = parseInt((wdbch/2)-150); document.getElementById("authbox").style.visibility = "visible"; document.getElementById("authbox").style.top = to_y_m + "px"; document.getElementById("authbox").style.left = to_x_m + "px"; document.getElementById("usname").focus(); } function getPosition(o){var x=y=0; while(o){ x+=o.offsetLeft;y+=o.offsetTop;o=o.offsetParent; } document.getElementById("authbox2").style.top = (y-200) + "px"; document.getElementById("authbox2").style.left = (x-350) + "px"; }; function authIndex2() { alert('Для работы с системой заказов, прежде необходимо зарегистрироваться или авторизоваться!'); document.getElementById("authbox2").style.visibility = "visible"; } function enter(event) { if (event.keyCode==13) { document.getElementById('authform').submit(); } } function closeBox() { document.getElementById("authbox").style.visibility = "hidden"; } function maxpic(img, w, h){ var win = window.open('','_blank',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h); win.document.open("text/html"); with (win.document) { write("