function textwin(){
  			var article=document.getElementById("print_id");
  			if(!article) return;
  			var texturl=document.getElementById("print_id").value;
  		  	if(texturl)
  		  		window.open(texturl,"Textversion","width=640,height=600,left=0,top=0,menubar=no,scrollbars=yes,toolbar=no,resizable=yes");
}

i = 1;

function zoomIn(){
	i += 0.1;
	innerZoom();
}

function zoomOut(){
	if (i > 0.6) i -= 0.1;
	innerZoom();
}

function innerZoom(){
	this.document.body.style.zoom=i;
}

function resetZoom(){
	i = 1;
	innerZoom();
}

function addfav(){
	if (window.sidebar){
  				window.sidebar.addPanel('Startseite Regnum Volksbestattung', 'http://www.volksbestattung.de','');
			} else if(document.all){
  				window.external.AddFavorite('http://www.volksbestattung.de', 'Startseite Regnum Volksbestattung');
			}else{
  				return true;
			}
}
var tsize = 2;

if (document.cookie) {
			tsizecookie = document.cookie.split("|||");
			if(tsizecookie[1]) { 
				tsize = parseInt(tsizecookie[1]);
				//alert(tsize+", "+document.cookie)
			}
} 

function zooom(ts)	{
	if(ts) tsize = eval(tsize + ts);

	if(tsize >= 6) tsize = 5;
	if(tsize <= 0) tsize = 1;

	if(tsize == 3) ptsize = 12;	
	if(tsize == 4) ptsize = 14;	
	if(tsize == 5) ptsize = 16;	
	if(tsize == 2) ptsize = 10;	
	if(tsize == 1) ptsize = 8;

	var obj = document.getElementById("container");
	
	
	//alert(obj.childNodes.nodeValue);
	
	obj.style.fontSize = ptsize+"pt";
	//alert(obj.style.fontSize);
	//document.getElementById("container").style.fontSize = "8px";
	//document.getElementById("container").style.fontColor = "red";

	document.cookie = "tsize=|||" + tsize + "|||; Path=/; expires=Wed, 11 Mar 2030 18:17:28";
}

function setFavorite (){
	var p_description = "FAVORITEN SETZEN";
	var p_title = "Startseite Regnum Volksbestattung";
	var p_url = "http://www.volksbestattung.de";
	if (document.all && !window.opera){ //IE5+
		var str = "<a href=\"javascript:window.external.AddFavorite(\'" + p_url + "\',\'" + p_title + "\')\">FAVORITEN SETZEN</a>";
		document.getElementById("fav").innerHTML = str;
	}
	else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function') && (navigator.userAgent.indexOf('Gecko') != -1)){ //Gecko
		document.getElementById("fav").innerHTML = "<a href=\"javascript:window.sidebar.addPanel ('" + p_title + "', '" + p_url + "','');\" title=\"" + p_title + "\">" + p_description + "</a>";
	}
	else{ //Opera
		document.getElementById("fav").innerHTML = "<a href=\"" + p_url + "\" title=\"" + p_title + "\" rel=\"sidebar\">" + p_description + "</a>";
	}
}