var xmlHttpObject = false;

if (typeof XMLHttpRequest != 'undefined') 
{
    xmlHttpObject = new XMLHttpRequest();
}
if (!xmlHttpObject) 
{
    try 
    {
        xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e) 
    {
        try 
        {
            xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(e) 
        {
            xmlHttpObject = null;
        }
    }
}

function loadContent(pcontent)
{
    xmlHttpObject.open('get',pcontent);
    xmlHttpObject.onreadystatechange = handleContent;
    xmlHttpObject.send(null);
    return false;
}

function handleContent()
{
    if (xmlHttpObject.readyState == 4)
    {
        
        document.getElementById('articles').innerHTML = xmlHttpObject.responseText;
    new Effect.Opacity('articles', { from: 0, to: 1 }); return false;
    }
}


function chkvbFormular () {
  
    if (document.email.anmeldung.checked == false) {
    alert("Bitte die Anmeldung ueber die Checkbox bestaetigen!");
    document.email.anmeldung.focus();
    return false;
  }

    if (document.email.name.value == "") {
    alert("Die Angabe eines Namens ist zwingend erforderlich!");
    document.email.name.focus();
    return false;
  }
  
  if (document.email.email.value == "") {
    alert("Die Angabe einer eMail Adresse ist zwingend erforderlich!");
    document.email.email.focus();
    return false;
  }
  
  }

