
function bookmark() {

shiftOpacity("social", 100);
return false;
}
function drucken_2_0() {

shiftOpacity("drucken_2_0", 100);

}
function weiterempfehlen() {

shiftOpacity("weiterempfehlen_2_0", 100);

}
function form_weiterleiten_2_0() {
form=document.getElementById("form_weiterleiten_2_0");

result=return_xmlhttp("index.php?site_id=weiterempfehlen_2_0&copytome=" + encodeURIComponent(form.copytome_2_0.value)+"&empfaenger=" + encodeURIComponent(form.empfaenger_2_0.value)+"&absender=" + encodeURIComponent(form.absender_2_0.value)+"&mitteilung=" + encodeURIComponent(form.mitteilung_2_0.value)+"&site_url=" + encodeURIComponent(form.site_url_2_0.value)+"&site_title=" + encodeURIComponent(form.site_title_2_0.value));
if (result == "1") {
alert("Sie haben diese Seite erfolgreich weiterempfohlen.");
weiterempfehlen();
} else {
alert(result);
}


}
function return_xmlhttp(url) {



var xmlHttp = null;
try {

xmlHttp = new XMLHttpRequest();
} catch(e) {
try {

xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
try {

xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
xmlHttp  = null;
}
}
}
if (xmlHttp) {
xmlHttp.open("GET", url, false);
xmlHttp.send(null);
var serverResponse = xmlHttp.responseText;
return serverResponse;


}



}

function opacity(id, opacStart, opacEnd, millisec) {
//speed for each frame
var speed = Math.round(millisec / 100);
var timer = 0;

//determine the direction for the blending, if start and end are the same nothing happens
if(opacStart > opacEnd) {
for(i = opacStart; i >= opacEnd; i--) {
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
timer++;
}
} else if(opacStart < opacEnd) {
for(i = opacStart; i <= opacEnd; i++)
{
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
timer++;
}
}
}


function changeOpac(opacity, id) {
var object = document.getElementById(id).style;
object.opacity = (opacity / 100);
object.MozOpacity = (opacity / 100);
object.KhtmlOpacity = (opacity / 100);
object.filter = "alpha(opacity=" + opacity + ")";
}
function shiftOpacity(id, millisec) {
//if an element is invisible, make it visible, else make it ivisible
if(document.getElementById(id).style.opacity == 0) {
document.getElementById(id).style.display="";
opacity(id, 0, 100, millisec);
} else {
opacity(id, 100, 0, millisec);
setTimeout("document.getElementById('"+id+"').style.display='none';",millisec);
}
}


function bookmark_document() {
alert("Bitte benutzen Sie Strg+D auf Ihrer Tastatur, um diese Seite Ihren Lesezeichen hinzuzufügen.");
return false;}
function populate_issues(year) {
while (document.forms["archive"].issue.length > 1) {
document.forms["archive"].issue[document.forms["archive"].issue.length-1]=null;
}if (year==2012) {var addme = new Option("9", "9");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("8", "8");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("7", "7");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("5–6", "5");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("4", "4");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("3", "3");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("2", "2");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("1", "1");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;}if (year==2011) {var addme = new Option("23–24", "23");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("22", "22");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("21", "21");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("20", "20");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("19", "19");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("17–18", "17");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("16", "16");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("15", "15");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("14", "14");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("13", "13");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("11–12", "11");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("10", "10");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("9", "9");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("8", "8");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("7", "7");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("5–6", "5");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("4", "4");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("3", "3");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("2", "2");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("1", "1");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;}if (year==2010) {var addme = new Option("23–24", "23");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("22", "22");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("21", "21");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("20", "20");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("19", "19");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("17–18", "17");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("16", "16");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("15", "15");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("14", "14");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("13", "13");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("11–12", "11");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("10", "10");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("9", "9");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("8", "8");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("7", "7");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("5–6", "5");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("4", "4");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("3", "3");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("2", "2");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("1", "1");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;}if (year==2009) {var addme = new Option("23–24", "23");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("22", "22");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("21", "21");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("20", "20");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("19", "19");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("17–18", "17");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("16", "16");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("15", "15");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("14", "14");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("13", "13");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("11–12", "11");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("10", "10");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("9", "9");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("8", "8");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("7", "7");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("5–6", "5");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("4", "4");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("3", "3");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("2", "2");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("1", "1");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;}if (year==2008) {var addme = new Option("23–24", "23");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("22", "22");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("21", "21");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("20", "20");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("19", "19");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("17–18", "17");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("16", "16");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("15", "15");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("14", "14");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("13", "13");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("11–12", "11");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("10", "10");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("9", "9");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("8", "8");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("7", "7");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("5–6", "5");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("4", "4");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("3", "3");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("2", "2");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;var addme = new Option("1", "1");  document.forms["archive"].issue[document.forms["archive"].issue.length] = addme;}
}
function issue_select(year,issue) {
document.getElementById("year").value=year;populate_issues(year);document.getElementById("issue").value=issue;
}

function sgr_checks(obj) {
document.getElementById("id3899b8b7f126e922a53c18ae3f8a014c").checked = obj.checked;document.getElementById("id3899b8b7f126e922a53c18ae3f8a014c").disabled = (obj.checked == true);document.getElementById("id04e9bca696a0530cba233bb002e790b5").checked = obj.checked;document.getElementById("id04e9bca696a0530cba233bb002e790b5").disabled = (obj.checked == true);document.getElementById("id60c892ac9496c25037f000270556c781").checked = obj.checked;document.getElementById("id60c892ac9496c25037f000270556c781").disabled = (obj.checked == true);document.getElementById("id65f827508eab165ca0b6af33619d5e40").checked = obj.checked;document.getElementById("id65f827508eab165ca0b6af33619d5e40").disabled = (obj.checked == true);document.getElementById("idcd4be9f3849adfd9d0fe2a3ab1a20841").checked = obj.checked;document.getElementById("idcd4be9f3849adfd9d0fe2a3ab1a20841").disabled = (obj.checked == true);document.getElementById("id7c6e349756296f9a2e0a0d1d65060e57").checked = obj.checked;document.getElementById("id7c6e349756296f9a2e0a0d1d65060e57").disabled = (obj.checked == true);
}

function reg_type(obj) {
if (obj=="firma") {
document.getElementById("abc1").innerHTML="Firma:";
document.getElementById("abc2").innerHTML="Ansprechpartner:";

} else {
document.getElementById("abc1").innerHTML="Name:";
document.getElementById("abc2").innerHTML="Vorname:";

}
}

function sendform_sent(obj) {

getXmlHttp("senden.html?beitragid="+encodeURIComponent(obj.beitragid.value)+"&senden_absender="+encodeURIComponent(obj.senden_absender.value)+"&senden_empfaenger="+encodeURIComponent(obj.senden_empfaenger.value)+"&senden_nachricht="+encodeURIComponent(obj.senden_nachricht.value)+"&senden_copy="+(obj.senden_copy.checked ? "1" : "0")+"&title="+encodeURIComponent(obj.title.value));
return false;
}
function getXmlHttp(url) {
if (typeof XMLHttpRequest != "undefined") {
xmlHttp = new XMLHttpRequest();
}
if (!xmlHttp) {
// Internet Explorer 6 und älter
try {
xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
xmlHttp  = null;
}
}
}
if (xmlHttp) {
xmlHttp.open("GET", url, false);
xmlHttp.send(null);
document.getElementById("senden_res_content").innerHTML=xmlHttp.responseText;
document.getElementById("senden").style.display="none";
document.getElementById("senden_res").style.display="";
}
}


function zeige_formular(fid) {

document.getElementById(fid).style.display="";
}
function verstecke_formular(fid) {

document.getElementById(fid).style.display="none";
}

iframe_activated=false;

function fonc1() {
if (iframe_activated) { alert(window.iframe1.document.body.innerHTML);
document.getElementById("senden_res").innerHTML=window.iframe1.document.body.innerHTML;

zeige_formular("senden_res");
}
}


function detailsuche_enable_checkbox(obj) {
input=obj.getElementsByTagName("input");
input=input[0];

if (input.disabled) {
document.getElementById("searchform_beitragtyp_alle").checked=false;
detailsuche_change_typ(document.getElementById("searchform_beitragtyp_alle"));
//input.checked=true;
}
}
function detailsuche_change_typ(obj) {
div=document.getElementById("detailsuche_checkboxes");
els=div.getElementsByTagName("input");
for (i=0; i<els.length; i++) {
if (els[i] != obj) {
els[i].checked=obj.checked;
els[i].disabled=obj.checked;
}
}
}


function toggle_div(id) {

document.getElementById(id).style.display= (document.getElementById(id).style.display ? "" : "none") ;

}









current_sub="";

function expand_subs(obj,force) {

var state=(obj.parentNode.title == "open" && force!=true);
obj.parentNode.title = (state ? "closed" : "open");
obj.title = (state ? "Unterpunkte einblenden" : "Unterpunkte ausblenden");
if (obj.parentNode.className=="plus") {
obj.parentNode.style.backgroundImage=(state ? "url(images/plus.png)" : "url(images/minus.png)");
}
var uls=obj.parentNode.children;
var ulslen=uls.length;
for (i=0; i<ulslen; i++) {
if (uls[i].tagName=="UL") {
uls[i].style.display=(state ? "none" : "");
}
}
}
function load_content_2(file) {
var as=document.getElementById("komm_navi").getElementsByTagName("a");
var aslen=as.length;

for (i=0;i<aslen;i++) {
if (as[i].getAttribute("rel")==file) {
load_content(as[i]);
return;
}
}

}

function load_content(obj) {
if (current_sub) {
current_sub.style.fontWeight="";
}
obj.style.fontWeight="bold";
current_sub=obj;


var xmlHttp = null;

if (typeof XMLHttpRequest != "undefined") {
xmlHttp = new XMLHttpRequest();
}
if (!xmlHttp) {

try {
xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
try {
xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
xmlHttp  = null;
}
}
}
if (xmlHttp) {
xmlHttp.open("GET", "kommentar.html?file="+obj.getAttribute("rel")+"&dec=1", false);

xmlHttp.send(null);
document.getElementById("komm_content").innerHTML=xmlHttp.responseText;
}



var subplots=obj.getAttribute("title");

if (obj.parentNode.parentNode.parentNode.className=="plus") {
expand_subs(obj.parentNode.parentNode,true);
}

nnobj=obj.parentNode.parentNode.parentNode;
while (nnobj.className=="plus") {
nobj=nnobj.getElementsByTagName("a");
subplots=nobj[0].innerHTML + " › " + subplots;

if (nobj[0].parentNode.parentNode.parentNode.className=="plus") {
expand_subs(nobj[0].parentNode.parentNode,true);
}

nnobj=nobj[0].parentNode.parentNode.parentNode;
}
//document.getElementById("subplots").innerHTML=subplots;
document.getElementById("subplots").scrollIntoView();
document.getElementById("td_document_send_url_hide").style.display="";
document.getElementById("td_document_download_hide").style.display="";
document.getElementById("td_document_download_hide").childNodes[0].href="beitrag_download.html?beitrag_id="+obj.getAttribute("rel");

}











