// Javascript DHTML API
// unterstuetzt IE4-IE6, NN4, NN6, Opera
// (c) 2002 webit! Gesellschaft fuer neue Medien mbH
//
// Package: Misc
// Abhaengigkeiten: jslBrowser.js
//
// Erst-Programmierer   : sh
// Datum der Erstellung : 19.03.02
// zuletzt geaendert von:
// letzte Aenderung     :

function preloadImage(imgObj, imgSrc){
	if (document.images)
	{
		eval(imgObj+' = new Image()');
		eval(imgObj+'.src = "'+imgSrc+'"');
	}
}

function changeImage(imgName, imgObj)
{
	if (document.images)
	{
		document.images[imgName].src = eval(imgObj+".src");
	}
}

function changeImageEx(layerName, imgName, imgObj)
{
	if (document.images)
	{
		if (dom)
			document.getElementById(imgName).src = eval(imgObj+".src");
		else if (ie4)
			document.all[layerName].document.images[imgName].src = eval(imgObj+".src");
		else if (ns4)
			document.layers[layerName].document.images[imgName].src = eval(imgObj+".src");
	}
}


function openWindow(strURL, winWidth, winHeight, hasScrollbar)
{
	newWin = open(strURL,"SLT","width="+winWidth+",height="+winHeight+",resizable=yes,scrollbars="+hasScrollbar)
	newWin.focus()
}
