function hideMailadress(name, domain) // Spamschutz
{
if(!name) var name="info";
if(!domain) var domain="kuepperssoft.com";
var hidestring = "<a class=\"email\" href=\"mailto:"+name+"@"+domain+"\">"+name+"@"+domain+"</a>";
return hidestring;
}

function setFooterpos()
{
if (document.getElementById("main") && document.getElementById("footer_box"))
	{
   Footer = document.getElementById("footer_box");
   FooterContent = document.getElementById("footer");
   Content = document.getElementById("main").offsetHeight+239;

   if (window.innerHeight)
   	{
        Body = window.innerHeight;
    }
   else if (window.document.documentElement.clientHeight)
   	{
    Body = window.document.documentElement.clientHeight;
    }

    if(Content>Body && Body>700)
    {
    Footer.style.position="fixed";
    FooterContent.style.position="fixed";
    Footer.style.top=Body-Footer.offsetHeight+"px";
    FooterContent.style.position="fixed";
    FooterContent.style.top=Body-Footer.offsetHeight+19+"px";
    }
   }

}

function change_Bestellversion(tagname, findClass, dothis) {
if(tagname)
{
 var aElm=document.body.getElementsByTagName(tagname);
 for(var i=0; i<aElm.length; i++) {
  if(aElm[i].className==findClass) {
        aElm[i].style.display = dothis;
   }
  }
 }
}

function reload_Bestellversion()
{
    if(document.FrontPage_Form1.TypGruppe[0].checked==true)
    {
		change_Bestellversion('td', 'vers_standard', 'table-cell');change_Bestellversion('td', 'vers_netzwerk', 'none');change_Bestellversion('td', 'vers_profi', 'none');
    }
    if(document.FrontPage_Form1.TypGruppe[1].checked==true)
    {
		change_Bestellversion('td', 'vers_standard', 'none');change_Bestellversion('td', 'vers_netzwerk', 'none');change_Bestellversion('td', 'vers_profi', 'table-cell');
    }
    if(document.FrontPage_Form1.TypGruppe[2].checked==true)
    {
		change_Bestellversion('td', 'vers_standard', 'none');change_Bestellversion('td', 'vers_netzwerk', 'table-cell');change_Bestellversion('td', 'vers_profi', 'none');
    }
}

