
function centerVertically(objectID)     {

        var thisObj = document.getElementById(objectID);
        var height = (window.innerHeight) ? window.innerHeight: document.documentElement.clientHeight;
        var objectHeight = parseInt(thisObj.style.height);
	objectHeight = 300;
        var newLocation = (height - objectHeight) / 2;

        thisObj.style.top = newLocation+'px';
}

function centerHorizontally(objectID)     {
        var thisObj = document.getElementById(objectID);
        var width = (window.innerWidth) ? window.innerWidth :   document.body.clientWidth;
        var objectWidth = parseInt(thisObj.style.width);
	objectWidth = 500;
        var newLocation = (width - objectWidth) / 2;
        thisObj.style.left = newLocation +'px';
}

function MakeCenter(obj)    {
        centerHorizontally(obj);
        //centerVertically(obj);
}

function setVisible(objname)
{
	obj = document.getElementById(objname);
	obj.style.visibility = (obj.style.visibility == 'visible') ? 'hidden' : 'visible';
}


