// Email-Verschlüsselung 

function email(name, domain,tld, link) {
 var link = "<a href='mailto:"+name+"@"+domain+"."+tld+"'>"+link+"</a>";
 document.write(link);
}

// Rechte Maustaste deaktivieren
function clickIE() {
	if (document.all) {
		return false;
	}
}
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which == 2||e.which == 3) {
			return false;
		}
	}
}

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = clickNS;
}
else{
	document.onmouseup = clickNS;
	document.oncontextmenu = clickIE;
}

// Zwei Frames ändern

function twoframes(URI1,F1,URI2,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.location.href = URI1;
  Frame2.location.href = URI2;
}
function twoframesBack(F1,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.history.back();
  if (!window.opera) window.setTimeout("Frame2.history.back()",10);
}
function twoframesForward(F1,F2) {
  Frame1=eval("parent."+F1);
  Frame2=eval("parent."+F2);
  Frame1.history.forward();
  if (!window.opera) window.setTimeout("Frame2.history.forward()",10);
}

// Nachladefunktion

function checkFrameset() {
  if(!parent.navi)
   location.href="shop.php";
 }
 
function anzeigen(id) {
document.getElementById(id).style.display = "block";
}
function ausblenden(id) {
document.getElementById(id).style.display = "none";
}