<!--
function popup(theURL,winName,y,x,width,height,features) { 
	winfeatures=("top="+y+",left="+x+",width="+width+",height="+height+","+features);
	window.open(theURL,winName,winfeatures);
}


// So wird die PopUp-Funktion aufgerufen: 
// <a href="javascript:popup('seite','name','y','x','500','300','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,dependent=1');">&raquo; Linktext</a>

// ################################################################################################################################################


if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu")
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

    function UnCryptMailto( s )
    {
        var n = 0;
        var r = "";
        for( var i = 0; i < s.length; i++)
        {
            n = s.charCodeAt( i );
            if( n >= 8364 )
            {
                n = 128;
            }
            r += String.fromCharCode( n - 1 );
        }
        return r;
    }

    function linkTo_UnCryptMailto( s )
    {
        location.href=UnCryptMailto( s );
    }


function bookmark()
  { 
  if (navigator.appName=='Microsoft Internet Explorer')
	  {
	  window.external.AddFavorite('http://www.meddent.ch', 'medDENT.ch');
	  }
	  else if (navigator.appName=='Netscape')
	  {
	  alert('Betätigen Sie die Tasten  Ctrl + D  um die Seite zu Ihren Favoriten hinzuzufügen');
	  }
   }
   

function no_error()
{ return true; }
window.onerror=no_error;

-->
