function zoomIt(feld,wert)
{
if(document.getElementById)
{
document.getElementById(feld).style.height=wert + "px";
}
}

function highlight(name,farbe)
{
if(document.getElementById)
{
document.getElementById(name).style.backgroundColor=farbe;
}}

function geturl()
{
location.href=document.forms[0].elements[0].options[document.forms[0].elements[0].selectedIndex].value;
}

function bookmark_me()
{
var url="http://www.gutfinanz.de";
var title="Gutfinanz GmbH";
var browser=navigator.appName;
if(browser=="Microsoft Internet Explorer")
{
window.external.AddFavorite(url,title);
}
else
{
alert("bitte STRG + D drücken,\n" + "um Lesezeichen zu setzen !");
}
}

function homepage()
{
if(document.all)
{
document.all.start.style.behavior="url(#default#homepage)";
document.all.start.setHomePage('http://www.gutfinanz.de');
}
else
{
alert("Ihr Browser unterstützt diese Funktion leider nicht !");
}
}

function init()
{
if(document.getElementById)
{
container = document.getElementById("box").style;
pos_left = parseInt(document.getElementById("box").style.left);
var breite = box.offsetWidth;
}}

function ticker()
{
//init()
if(document.getElementById)
{
container = document.getElementById("box").style;
pos_left = parseInt(document.getElementById("box").style.left);
var breite = box.offsetWidth;
}

if(document.getElementById)
{
if(pos_left > -breite)
{
container.left = pos_left - 1;
}
if(pos_left == -breite)
{
container.left = 560 + "px"
}
timer=setTimeout("ticker()",20);
}}

// Funktion für Submit-Button PDF-Upload (Formular-Center)

var text="Daten werden gesendet - bitte warten...";
function pleasewait()
{
document.uploadformular.sendebutton.value=text;
text=text.substring(1) + text.substring(0,1);
setTimeout("pleasewait()",200);
}

function open_win(url,win_width,win_height)
{
window.open(url,"new","width="+win_width+",height="+win_height+",left="+(screen.Width-win_width+20)/2+",top="+(screen.Height-win_height)/2+",scrollbars=yes");
}


function druckversion(url)
{
window.open("druckversion/"+url,"new","width=570,height=460,left="+(screen.Width-420)/2+",top=50,scrollbars=yes");
}


// Funktion für Impressum
function show_container(container)
{
if(document.getElementById)
{
if(document.getElementById(container).style.display=="block")
{
document.images["pfeilbutton"].src="bilder/pfeil_a.gif";
document.getElementById(container).style.display="none";
}
else
{
document.images["pfeilbutton"].src="bilder/pfeil_b.gif";
document.getElementById(container).style.display="block";
}
}
}

function show_bsp(container)
{
if(document.getElementById)
{
document.getElementById(container).style.visibility="visible";
document.getElementById("immobilientyp").style.visibility="hidden";
document.getElementById("nutzungsart").style.visibility="hidden";
document.getElementById("finanzierungsart").style.visibility="hidden";
document.getElementById("zinsbindungsdauer").style.visibility="hidden";
}
}
function hide_bsp(container)
{
if(document.getElementById)
{
document.getElementById(container).style.visibility="hidden";
document.getElementById("immobilientyp").style.visibility="visible";
document.getElementById("nutzungsart").style.visibility="visible";
document.getElementById("finanzierungsart").style.visibility="visible";
document.getElementById("zinsbindungsdauer").style.visibility="visible";
}
}