if (self.location.href != window.location.href) {
	window.location.href = self.location.href;
}

function scrollToPageTop () {
	if (window.scrollTo) {
		window.scrollTo (0, 0);
		return false;
	} else {
		return true;
	}
}

function preimg(){
var loadcomp = false;
	var preload = new Array();
	for(i = 0 ; i < preloadlist.length ; i++) {
		preload[i] = new Image();
		preload[i].src = preloadlist[i];
	}
	loadcomp = true;
}

function chgimg(target,filename){
	document.images[target].src = filename;
}

function OpenPopup1(Link,WinTarget,breite,hoehe) {
	if (!!window && Link) {
	var iMyWidth = (window.screen.width/2) - (breite/2 + 10);
	var iMyHeight = (window.screen.height/2) - (hoehe/2 + 50);
	var winPopup = window.open(Link ,WinTarget,"toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,favorites=no,width=" + breite + ",height=" + hoehe + ",left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight);
	winPopup.focus();
	}
}

