function checkFormular()
{
    var inputs = document.getElementsByTagName("input");
    var text = "";

    for (var i=0; i<inputs.length; i++)
    {
        if((inputs[i].type == "text" || inputs[i].type == "password") && (inputs[i].name != "accountid" && inputs[i].name != "passwort"))
        {
            if(inputs[i].value == "" || inputs[i].value == "http://")
            {
                text = "Sie haben nicht alle Pflichtfelder ausgefüllt"
            }
        }
    }
    if(text != "")
    {
        alert(text);
        return false;
    } else {
        return true;
    }
}

function ladeRestlichenStyles(id1,id2,zaehler_value)
{
    var counter_bild = "";
    if(zaehler_value.length > 1)
    {
        for(i=0;i<zaehler_value.length;i++)
        {

            if(zaehler_value[i].checked)
            {
                counter_bild = zaehler_value[i].value;
            }
            if(counter_bild == zaehler_value[i].value)
            {
                zaehler_value[i].checked = true;
            }
        }
    }
    document.getElementById('auswahl_mehr').value = '1';
    document.getElementById(id2).style.display = 'block';
    document.getElementById(id1).style.display = 'none';
}

