<script>
onload = function ()
{
with (document.getElementById ('myDiv').style)
left = (document.body.clientWidth - 350) / 2 + 'px',
top = (document.body.clientHeight - 130) / 2 + 'px';
}
</script>
<div style="z-index: 999; border: 5px solid blue; position: absolute; padding: 10px; width: 350px; background-color: rgb(236, 242, 230); height: 130px; left: 768.5px; top: 585px; background-position: initial initial; background-repeat: initial initial;" id="myDiv">
<p style="TEXT-ALIGN: right; MARGIN: 0px; CURSOR: pointer" onclick="this.parentElement.style.display = 'none'"><img border="0" src="221_files/x.png" width="25" height="29"></p>
<p style="TEXT-ALIGN: center; MARGIN: 0px; FONT-FAMILY: Arial,Helvetica sans-serif; COLOR: black; FONT-SIZE: 18px">Приветствуем!</p>
</div>
если по середине экрана, то лучше сделать position: fixed
+ центрировать не по документу, а по окну браузера, основная ошибка,
и для правильного положения нужно еще вычитать размеры самого всплывающего окна, padding тоже увеличивает размеры div
_____________
"internet explorer всех правильней отображает страницы" ©