// Frames entfernen
if (self != top) top.location = self.location;
self.focus();

var a_stil="<style>",s_nix="none",z_stil="</style>",icke=document;
icke.write(a_stil+".normal {text-decoration:"+s_nix+";color:white;cursor:text;}"+z_stil);

function checkMouseButton(e) {
	var breite = screen.width - 100;
	var hoehe = screen.height - 100;
	var links = 50;
	var oben = 50;

	if (document.all) {
		if (event.button == 2 || event.button == 3) {
			var sendform = window.open(url, "sendform", "width="+breite+", height="+hoehe+", left="+links+", screenX="+links+", top="+oben+", screenY="+oben+", scrollbars=yes");
			//sendform.location.href="picsend.php";
			sendform.focus();
			return false;
		}
	}
	else if (typeof e != "undefined") {
		if (e.which == 3 || e.which == 2) {
			var sendform = window.open(url, "sender", "scrollbars=yes, width=600, height=500, screenX=100, screenY=50, resizable=yes");
			sendform.focus();
			return false;
		}
	}

	return true;
}

// Bild zurück
function nextImg(E)
{
	var taste, arr;
	if (document.layers)
		{taste = E.which;}
	else if (document.all)
		{taste = window.event.keyCode;}

	if (taste == 32) {       // Leertaste
		location.href=theNext;	
	}
}

if (document.layers) {
	window.captureEvents(Event.MOUSEDOWN | Event.KEYDOWN);
}
document.onmousedown=checkMouseButton;
window.onmousedown=checkMouseButton;
document.onkeydown=nextImg;

self.focus();
