/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function getUmkreis(){
    zip=$('autocomplete_plz').value;
    dists=document.getElementsByName("umk")[0].value;
    var req=new Ajax.Request('cp/ajaxumkreis/find.php',{
        method:'post',
        parameters:{zip:zip,dist:dists},
        onSuccess:function(e){
            $('umkreisresponse').innerHTML=e.responseText;
        }
    })
    
}

function fader(elm){
    if($(elm).style.display=="none"){
        $(elm).style.display='block';
        new Ajax.Request('cp/ajaxumkreis/storelog.php',{
            method:'post',
            parameters:{row_id:elm},
            onSuccess:function(e){
                //
            }
        });
    }else{
        $(elm).style.display='none';
    }
}
