﻿function openCenteredPopup(url, name, height, width, params)
{
    var left = Math.floor((screen.width - width) / 2);
    var top = Math.floor((screen.height - height) / 2);
    var location = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
    params += "," + location;
    window.open(url, name, params);
}

function setDivPosition()
{
    var intY = document.getElementById("divTest").scrollTop;
    document.title = intY;
    document.cookie = "yPos=!~" + intY + "~!";
}