


function top()
{
	x = document.body.scrollLeft;
	y = document.body.scrollTop;
	step = 2;
	while ((x != 0) || (y != 0)) {
		scroll (x, y);
		step += (step * step / 100);
		x -= step;
		y -= step;
		if (x < 0) x = 0;
		if (y < 0) y = 0;
	} 
	scroll (0, 0);
}



var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD><style type=text/css>\n<!--\ntable { border-color#ffffff; border-width:0px; border-style:solid; }body { margin-left:35px; margin-right:0px; margin-top:30px; margin-bottom:0px; font-family:Arial; background-color:#ffffff;vertical-align:top;text-align:middle;}\ndiv.normal { color:#000000; font-family:Arial; font-size:12px; font-weight:light; text-decoration:none; }\ndiv.title { font-weight:bold; font-style:italic;color:#000000; font-family:Arial; font-size:16px; text-decoration:none; }\n-->\n </style>\n';
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		html += '\n </he' + 'ad>\n<body>\n<center><table width=600 border=0 cellspacing=0 cellpadding=0>\n<tr>\n<td height=150 align=left><img src=bilder/logo_druck.jpg border="0"></td>\n</tr>\n<tr>\n <td>&nbsp;</td>\n</tr>\n<tr>\n <td>';
		var printReadyElem = document.getElementById("printReady");
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '</td>\n</tr>\n</table>\n</center>\n</bo' + 'dy>\n</ht' + 'ml>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, die Printoption ist nur mit neueren Browsern kompatibel");
	}
}




