function openGrafTemp(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (480/2); okno = window.open('grafDayTeplota.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=480,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafVlhkost(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (480/2); okno = window.open('grafDayVlhkost.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=480,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafTetmostat(id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (480/2); okno = window.open('grafDayTermostat.php?id='+id+'', '_blank', 'width=880,height=480,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafOsvit(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (480/2); okno = window.open('grafDayOsvit.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=480,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafIn(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (230/2); okno = window.open('grafDayIn.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=230,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafOut(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (230/2); okno = window.open('grafDayOut.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=230,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafOutWatt(dev_id, id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (480/2); okno = window.open('grafDayOutWatt.php?dev_id='+dev_id+'&id='+id+'', '_blank', 'width=880,height=480,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafRoom(id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (450/2); okno = window.open('grafDayRoom.php?id='+id+'', '_blank', 'width=880,height=450,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function openGrafElektromer(dev_id, unit, faze_id){ iMyWidth = window.screenX + (window.outerWidth/2) - (880/2); iMyHeight = window.screenY + (window.outerHeight/2) - (620/2); okno = window.open('grafDayElektromer.php?dev_id='+dev_id+'&unit='+unit+'&faze_id='+faze_id+'', '_blank', 'width=880,height=620,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }function pingTestOpen(IP){ iMyWidth = window.screenX + (window.outerWidth/2) - (500/2); iMyHeight = window.screenY + (window.outerHeight/2) - (300/2); okno = window.open('/wz_ping.php?IP='+IP+'', 'wz_ping', 'width=500,height=300,left=' + iMyWidth + ',screenX=' + iMyWidth + ',top=' + iMyHeight + ',screenY=' + iMyHeight + ''); okno.focus(); }