function getObject(id) { 
	if (document.all) {
		if (typeof document.all[id] != "undefined")
			return document.all[id];
	}
	else if (document.getElementById) { 
		if (typeof document.getElementById(id) != "undefined")
			return document.getElementById(id);
	}
	return false;
}


function showPreview(containerId) {
	var theContainer = getObject(containerId);
	if (!theContainer) {
		return true;
	}
	else {
		setImages();
		theContainer.style.display = "block";
		return false;
	}
}


function hidePreview(containerId) {
	var theContainer = getObject(containerId);
	theContainer.style.display = "none";
}


imgArr = new Array();

function imagesToSet(imgId, imgSrc) {
	imgArr[imgArr.length] = new Array(imgId, imgSrc);
}

function setImages() {
	for (var i=0; i<imgArr.length; i++) {
		document.images[imgArr[i][0]].src = imgArr[i][1];
	}
}


// Geschützte E-Mail-Adresse
function eml(name,adr,top,klasse) {
	document.write('<a href=\"mailto:' + name + '@' + adr + '.' + top + '\">');
	document.write(name + '@' + adr + '.' + top + '</a>');
}
	

// Netscape resize fix
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


//function errorsuppressor(){
//return true
//}
//window.onerror=errorsuppressor
