
if (self.parent.frames.length != 0)
        self.parent.location="/index.php";

function fav()
{
if ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4) && (navigator.platform != 'MacPPC'))
		{
		  window.external.AddFavorite('http://www.commaufdenpunkt.de', 'Silke Rommel .:. commaufdenpunkt');
		  return false;
		}
		else
		{
		  alert('Dies funktioniert leider nur mit Internet Explorer ab Version 4.x unter Windows!');
		  return false;
		}
}


function printPage1() {
if (window.print) window.print()
else
alert("Sorry, aber Ihr Browser unterst&uuml;zt nicht das direkte Drucken von HTML-Seiten!");
}


var ebenenref;
function Zeige(Nr){
ebenenref="sub"+Nr;
if (document.getElementById) // IE 5.x und NN 6
{document.getElementById(ebenenref).style.visibility="visible";
}
if (document.layers) // NN 4.x
{document.layers[ebenenref].visibility="visible";
}
if (document.all && !document.getElementById) // IE 4
{document.all[ebenenref].style.visibility="visible";
}
}
function Verstecke(Nr)
{ebenenref="sub"+Nr;
if (document.getElementById) // IE 5.x und NN 6
{document.getElementById(ebenenref).style.visibility="hidden";
}
if (document.layers) // NN 4.x
{document.layers[ebenenref].visibility="hidden";
}
if (document.all && !document.getElementById) // IE 4
{document.all[ebenenref].style.visibility="hidden";
}
}

function change(objshow,objhide)
{
	if(document.layers)
	{		objhide.visibility="hide";
			objshow.visibility="show";	}
	if(document.all)
	{		objhide.style.visibility="hidden";
			objshow.style.visibility="visible";	}
}




function haftung(mypage){
	var mypage; var winname='Haftung';
	var w=470; var h=450;
	var winbreite=(screen.width-w)/10;
	var winhoehe=(screen.height-h)/10;
	winprops='height='+h+',width='+w+',top='+winhoehe+',left='+winbreite+',resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,locationbar=no';
	win=window.open(mypage, winname, winprops);
	win.focus();
}
function mailan(){
	var mypage="mailan.php";
	var w=470; var h=420;
	var winbreite=(screen.width-w)/10;
	var winhoehe=(screen.height-h)/10;
	var myname="mailan";
	winprops='height='+h+',width='+w+',top='+winhoehe+',left='+winbreite+',scrollbars=1,resizable=0';
	win=window.open(mypage, myname, winprops);
	win.focus();
}
function empfehlen(){
	var mypage="empfehlen.php";
	var w=470; var h=420;
	var winbreite=(screen.width-w)/10;
	var winhoehe=(screen.height-h)/10;
	var myname="empfehlen";
	winprops='height='+h+',width='+w+',top='+winhoehe+',left='+winbreite+',scrollbars=1,resizable=0';
	win=window.open(mypage, myname, winprops);
	win.focus();
}
function open_win(ziel,attr) {
   var a='<img src='+ziel+' border=0>'
   if (attr==0) 
   type="width=630,height=450,screenX=10,screenY=10,resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,locationbar=no"
   if (attr==1)
   type="width=1000,height=780,screenX=10,screenY=10,resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,locationbar=no"
   if (attr==2)
   type="width=340,height=510,screenX=10,screenY=10,resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,locationbar=no"
   if (attr==3)
   type="width=520,height=560,screenX=10,screenY=10,resizable=yes,scrollbars=no,toolbar=no,status=no,directories=no,menubar=no,locationbar=no"
   newwindow = window.open("","Yeah",type);
   newwindow.document.open();
	newwindow.document.write("<link rel='stylesheet' type='text/css' href='style-spi-w.css'>");
   newwindow.document.write("<p align='center'><a href='javascript:window.close()'>");
   newwindow.document.write(a);
   newwindow.document.write("</a></p>");
   newwindow.document.write("<p align='center'><a href='javascript:window.close()' class=small>");
   newwindow.document.write("<br>Fenster schliessen</a></p>");
	newwindow.focus();
   newwindow.document.close();
}
      var Name = navigator.appName;             
      var Version = parseInt(navigator.appVersion);
      var JavaScript = 0;
      if ((Name == "Netscape" && Version >= 4) || (Name == "Microsoft Internet Explorer" && Version >=4)) { JavaScript = 1; }
      function openWin(adresse) {
      if (JavaScript == 1) { 
      Fenster = open(adresse,"Yeah","width=850,height=550,screenX=10,screenY=10,resizable=yes,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,locationbar=no");
      Fenster.focus();
      }
      }

// <a href="#" onClick="javascript:open_win('bildname',3)"> 

function Sichtbarkeit_aendern(was,an_aus) 
{
	if(document.all && !document.getElementById) 
	{
		if(document.all[was]) 		
		{
			if(document.all[an_aus].checked == true) 
			{
				document.all[was].style.display = "block";
			}
			else
			{ 
				document.all[was].style.display = "none";
			}
		}
	}
	else if(document.getElementById) 
	{
		if(document.getElementById(was)) 
		{
			if(document.getElementById(an_aus).checked == true) 
			{
				document.getElementById(was).style.display = "block";
			}
			else 
			{
				document.getElementById(was).style.display = "none";
			}
		}
	}
}

