
function Tilgungssatz_CheckedChanged() {
	var Tilgungssatz;
	var Rate;
	var Tilgung_1;
	var Tilgung_2;
	var Rate_1;
	var Rate_2;
	
	Tilgungssatz = document.getElementById("optTilgungssatz");
	Rate = document.getElementById("optRate");
	Tilgung_1 = document.getElementById("txtTilgung_1");
	Tilgung_2 = document.getElementById("txtTilgung_2");
	Rate_1 = document.getElementById("txtRate_1");
	Rate_2 = document.getElementById("txtRate_2");
	
	if (Tilgungssatz != null) {
		if (Tilgungssatz.checked == true) {
			Tilgung_1.disabled = false;
			Tilgung_2.disabled = false;
			Rate_1.disabled = true;
			Rate_2.disabled = true;
		}
		else {
			Tilgung_1.disabled = true;
			Tilgung_2.disabled = true;
			Rate_1.disabled = false;
			Rate_2.disabled = false;
		}
	}
}


function _ShowToolTip(posLeft, posTop, strText)
{
	document.getElementById("ToolTip").style.zIndex = 3;
    document.getElementById("ToolTip").innerHTML = strText;
    document.getElementById("ToolTip").style.left = posLeft + "px";
    document.getElementById("ToolTip").style.top = posTop + "px";
    document.getElementById("ToolTip").style.display = "block";
}
function GetScrollPosLeft()
{
	var GetScrollPosLeft;
	if (typeof window.pageXOffset != 'undefined') {
		GetScrollPosLeft = window.pageXOffset;
	}
	else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
		GetScrollPosLeft = document.documentElement.scrollLeft;
	}
	else if (typeof document.body != 'undefined') {
		GetScrollPosLeft = document.body.scrollLeft;
	}
	return GetScrollPosLeft;
}
function GetScrollPosTop()
{
	var GetScrollPosTop;
	if (typeof window.pageYOffset != 'undefined') {
		GetScrollPosTop = window.pageYOffset;
	}
	else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {
		GetScrollPosTop = document.documentElement.scrollTop;
	}
	else if (typeof document.body != 'undefined') {
		GetScrollPosTop = document.body.scrollTop;
	}
	return GetScrollPosTop;
}
function HideToolTip()
{
    document.getElementById("ToolTip").style.display = "none";
}


function ShowInfoBox(e) {
	document.getElementById(e).style.display = "block";

	var el = document.getElementById('img' + e.substring(4));
	if (el) {
		document.getElementById(e).style.top = el.offsetTop + 32 + 'px';
	}
}
function HideInfoBox(e) {
	document.getElementById(e).style.display = "none";
}


function openWindow(URL,winName,features) {
  window.open(URL,winName,features);
}
function openWindow(URL, winName) {
  window.open(URL, winName, "width=675, height=800, scrollbars=yes");
}