    function accesso() {
    var invio=false;
    user = document.login.username.value;
    passwd = document.login.password.value;
        
    if(( user != '') && ( passwd != '')) {     
        invio=true;
        }              
        
    if (invio==true) {
        w = 320;
        h = 280;
        l=(screen.width-w)/2; 
        t=(screen.height-h)/2; 
        
        property="scrollbars=no,width="+w+",height="+h+",top="+t+",left="+l;
        
        fin=window.open("about:blank","fin",property);
        timer=setTimeout("return true",200)
        } else  {
        alert("Inserire un nome utente e una password");
        return false;
        }
    }