function toggle_visibility(id) {
	var e = document.getElementById(id);
	if(e.style.display == 'block')
		e.style.display = 'none';
	else
		e.style.display = 'block';
}

             function popup(){
                 //erstellen des requests
                 var req = null;

                try{
                    req = new XMLHttpRequest();
                }
                catch (ms){
                    try{
                        req = new ActiveXObject("Msxml2.XMLHTTP");
                    } 
                    catch (nonms){
                        try{
                            req = new ActiveXObject("Microsoft.XMLHTTP");
                        } 
                        catch (failed){
                            req = null;
                        }
                    }  
                }

                if (req == null)
                      alert("Error creating request object!");
 
				  allyv=ally.value;
				  allyv=encodeURIComponent(allyv);
                  req.open("GET", "http://bashrank.terenceds.de/get_allyid.php?server=" + server.value + "&tag=" + allyv, true);

                req.onreadystatechange = function(){
                    switch(req.readyState) {
                            case 4:
                            if(req.status!=200||req.responseText==0) {
                               
                             }else{    
                              
                                document.getElementById('popd').innerHTML = req.responseText;
                            }
                            break;
                    
                            default:
                                return false;
                            break;     
                        }
                    };
  
                  req.setRequestHeader("Content-Type",
                                      "application/x-www-form-urlencoded");
                req.send(null);
            }
