var initii = window.setInterval('downcount()', 200);
var zahll = 50;
var load = 5;

function ladeseite()
{
    document.getElementById("addit").style.display = "block";
    document.getElementById("smsmodul").style.display = "block";
    document.getElementById("ladebalken").style.display = "block";

}

function downcount()
{
    zeige = '<div id="bar" style="margin:5px;height:15px;background-color:#C0C0C0;width:' + load + 'px;">&nbsp;</div>';
    document.getElementById("ladebalken").innerHTML = zeige;
    zahll --;
    load += 5;

    if (zahll < 0 )
    {
        window.clearInterval(initii);
        document.getElementById("bar").style.display = "none";
        document.getElementById("ladebalken").style.display = "none";
        document.getElementById("smsmodul").style.display = "none";
        document.getElementById("addit").style.display = "none";
        document.getElementById("player").style.display = "block";
    }
}

function kontrolle()
{
    var x = document.getElementById("form_text");
    var m = 160;

    if( x.value.length > m ) x.value = x.value.substring( 0, m );
    document.getElementById("form_rest").value = (m-x.value.length);
}

function popup(url)
{
 var breite=300;
 var hoehe=400;
 var positionX=((screen.availWidth / 2) - breite / 2);
 var positionY=((screen.availHeight / 2) - hoehe / 2);
 var url=url;
 pop=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,fullscreen=0,width='+breite+',height='+hoehe+',top=0,left=0');
 pop.resizeTo(breite,hoehe);
 pop.moveTo(positionX,positionY);
 pop.location=url;
 }

function shownobalken()
{
document.getElementById("player").style.display = "block";
}

function Send() {
  document.sms.submit();
}