
//=== setzen des DefaultStatus in der Statusbar
defaultStatus = "Wohn+Stadtbau GmbH";

//=== Navigation: MouseOver-Funktion und Preload der Buttons
var p="_pix/nav/";

bt1p = new Image(); bt1p.src = p+"bt_mietwohnungen_p.gif";
bt1a = new Image(); bt1a.src = p+"bt_mietwohnungen_a.gif";
bt2p = new Image(); bt2p.src = p+"bt_mieterservice_p.gif";
bt2a = new Image(); bt2a.src = p+"bt_mieterservice_a.gif";
bt3p = new Image(); bt3p.src = p+"bt_gewerblimmo_p.gif";
bt3a = new Image(); bt3a.src = p+"bt_gewerblimmo_a.gif";
bt4p = new Image(); bt4p.src = p+"bt_wohneigentum_p.gif";
bt4a = new Image(); bt4a.src = p+"bt_wohneigentum_a.gif";
bt5p = new Image(); bt5p.src = p+"bt_aktuelles_p.gif";
bt5a = new Image(); bt5a.src = p+"bt_aktuelles_a.gif";
bt6p = new Image(); bt6p.src = p+"bt_unternehmen_p.gif";
bt6a = new Image(); bt6a.src = p+"bt_unternehmen_a.gif";

function MouseOverOut(PicID, Strg) {
	switch (Strg) {
		case 0 : var Button = eval(PicID + "p"); break;
		case 1 : var Button = eval(PicID + "a"); break;
		default : var Button = eval(PicID + "p"); break;
	}
	document.images[PicID].src = Button.src;
}

//=== Popup Funktion
function show_img(url, width, height) {
	var x = (screen.width/2) - (width/2);
	var y = (screen.height/2) - (height/2);
	
	popupWin = open('','img','left=' + x +',top=' + y +',width=' + width +',height=' + height +',toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no,dependent=yes');
	popupWin.document.write('<html><head><title>Bilderanzeige</title>');
	popupWin.document.write('</head><body style="margin:0px 0px 0px 0px;" onblur="window.close()">');
	popupWin.document.write('<img src="'+url+'" width="'+width+'" height="'+height+'" border="0">');
	popupWin.document.write('</body></html>');
	popupWin.document.close();
	popupWin.focus();
}

//=== Popup Funktion
function show_url(url, width, height) {
	var x = (screen.width/2) - (width/2);
	var y = (screen.height/2) - (height/2);
	
	popupWin = open(url,'url','left=' + x +',top=' + y +',width=' + width +',height=' + height +',toolbar=no,location=no,directories=no,menubar=no,status=no,resizable=no,scrollbars=no,dependent=yes');
	popupWin.focus();
}

//=== Hover-Funktion bei Datensaetzen die ueber mehrere TRs gehen
function tr_hover(ID, Status) {
	if (Status==1) { document.getElementById("tr"+ID+"a").bgColor='#dadada'; } // alter Trio-Hit!!  ;)
	if (Status==0) { document.getElementById("tr"+ID+"a").bgColor=''; }
}

//=== Checken der Checkboxen
function check(formularname, boxname) {
	tesa ("document."+formularname+"."+boxname+".value");
	
	form_objekt = eval("document."+formularname+"."+boxname);

	with (form_objekt) {
		if (checked) { checked = false; }
		else { checked = true; }
	}
}