function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}

function winopen_img(URL) {
	window.open(URL, 'img', 'width=150,height=150,toolbar=0,location=0,locationBar=0,directories=0,status=0,menuBar=0,scrollBars=no,resizable=0,dependent=yes,screenX=0,screenY=0');
}

function winopen(URL,breite,hoehe) {
	window.open(URL, 'img', 'width='+breite+',height='+hoehe+',toolbar=0,location=0,locationBar=0,directories=0,status=0,menuBar=0,scrollBars=no,resizable=0,dependent=yes,screenX=0,screenY=0');
}

function initImage() {
	imageId = 'pic';
	image = document.getElementById(imageId);
	setOpacity(image, 0);
	image.style.visibility = "visible";
	fadeIn(imageId,0);
}

function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 5;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
		}
	}
}

function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}
