';Dom.add(closebox,box);let msgbox = Dom.make('div');msgbox.innerHTML = s;Dom.add(msgbox,box);let scover = Dom.make('div');scover.id = 'alertboxscreen';scover.style.display='block';scover.style.position='absolute';scover.style.zIndex='98';scover.style.left='0px';scover.style.top='0px';scover.style.width='100%';scover.style.height='100%';scover.style.backgroundColor='rgba(0,0,0,.25)';scover.onclick=removeAlertBox;Dom.add(scover,d.body);let divwidth = box.offsetWidth;let divheight = box.offsetHeight;let topposition = parseInt(((viewheight-divheight)/2)+scrolltop);let leftposition = parseInt(((viewwidth-divwidth)/2)+scrollleft);if(topposition<0) topposition = 0;if(leftposition<0) leftposition = 0;box.style.top = topposition + 'px';box.style.left = leftposition + 'px';}