﻿function img_act(imgName, obj) {
	if (obj.src) {
		obj.src=eval(imgName+".src");
	} else if (document[obj]) {
		document[obj].src=eval(imgName+".src");
	}
}

function img_act_link(imgName, obj) {
	if (obj.firstChild.src){
		obj.firstChild.src=eval(imgName+".src");
	}
}

function printIt(){
	if (window.print) {
		window.print();
	} else {
		var WebBrowser = "<object id='WebBrowser1' width='0' height='0' classid='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'><\/object>";
		document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
		WebBrowser1.ExecWB(6, 2);
	}
}

function openPic(picurl,text) {
	try {
		var picWin = window.open("index.php?module=DD_topictree&func=imageenlarge&text="+text+"&picurl="+picurl,"pic","width=472,height=346,top=20,left=20,resizable");
		picWin.focus();
	} catch (ex) {
		alert("Dieser Link öffnet ein neues Fenster. Bitte lassen Sie Popups zu!");
	}
}

