
function scrollDepCalcIframe()
{
	var scrtop=getscrollDepCalcIframeTop();
	var scrleft=getscrollDepCalcIframeLeft();
    if (top.document.getElementById('DepCalcIframe'))
	{
		var divElement = top.document.getElementById('DepCalcIframe');
		divElement.style.left=(parseInt(top.document.body.clientWidth)-parseInt(divElement.clientWidth))/2+"px";
		divElement.style.top=((parseInt(top.document.body.clientHeight)-parseInt(divElement.clientHeight))/4)+scrtop+"px";
		setTimeout(scrollDepCalcIframe, 10);

	}
}

function getscrollDepCalcIframeTop()
{
	return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}
function getscrollDepCalcIframeLeft()
{
	return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}

function showDepCalcIframe() {
	document.getElementById('iframediv').style.display = '';
	document.getElementById('iframediv').innerHTML= '<iframe id=DepCalcIframe src="./deposits_calculator/index.php" frameborder="0" style="border: 1px solid #d4d4d4; position:absolute; width: 630px; height: 495px; z-index:10000; background: #ffffff; top:50px; left: 50px" border=0></iframe>';
	setTimeout(scrollDepCalcIframe, 10);
}

function hideDepCalcIframe() {
	top.document.getElementById('iframediv').style.display = 'none';
	top.document.getElementById('iframediv').innerHTML= '';
}


