// JavaScript Document
function accPopup(theURL,winName,features) {
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
		return false;
}

function flashPopup(theURL,winName,features) {
		newwindow=window.open(theURL,winName,features);
		if (window.focus) {newwindow.focus()}
}

function openFile(theFile,imageWidth,imageHeight) {
	if (typeof newWin!='undefined') newWin.close();
	newWin = window.open(theFile,"newWin","width="+(eval(imageWidth)+470)+",height="+(eval(imageHeight)+40)+",scrollbars=no,status=no,left=20,top=20");
	newWin.focus();
	return false;
}

function flashOpenFile(theFile,imageWidth,imageHeight) {
	if (typeof newWin!='undefined') newWin.close();
	newWin = window.open(theFile,"newWin","width="+(eval(imageWidth)+470)+",height="+(eval(imageHeight)+40)+",scrollbars=no,status=no,left=20,top=20");
	newWin.focus();
}

function submitThis(id) {
	document[id].submit();
}

function openPic(thePic,imageWidth,imageHeight,alt) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left=20,top=20");
	newWindow.document.open();
	newWindow.document.write('<html><head><title>'+alt+'</title><style type="text/css"><!--body {margin:0;} --></style></head><body onblur="self.close()">'); 
	newWindow.document.write('<img src=\"'+thePic+'\" width='+imageWidth+' height='+imageHeight+' title=\"'+alt+'\" alt=\"'+alt+'\">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	return false;
}

/*
function setupOpenPic() {
	for (var i=0; i<document.links.length; i++) {
	theFile = document.links[i].href;
	fileType = theFile.substr((theFile.lastIndexOf('.')+1),3).toLowerCase();
	if (fileType == 'jpg' || fileType == 'gif') {
		document.links[i].onmouseover = function () {
			window.status = 'zum Vergr\u00F6\u00DFern klicken';
			return true;
		}
		document.links[i].onmouseout = function () {
			window.status = '';
			return true;
		}
		document.links[i].onclick = function () {
			thePath = this.toString();
			fileName = thePath.substr(thePath.lastIndexOf('/')+1);
			fileName = fileName.substr(0,fileName.lastIndexOf('.'));
			imgDim = fileName.substr(fileName.lastIndexOf('_')+1);
			imgDim = imgDim.split('x');
			if (this.title!=null) { theTitle = this.title; 
			} else { theTitle=''; }
			return openPic(this,imgDim[0],imgDim[1],theTitle);
			}	
		}
	}
}

window.onload = function() {
	setupOpenPic();
	}
*/
