function aggiungiPerferiti(title,url)
{
    if (window.sidebar)
    { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url,"");
    }
    else if( window.external )
    { // IE Favorite
        window.external.AddFavorite( url, title);
    }
    else if(window.opera && window.print)
    { // Opera Hotlist
        return true;
    }
}

function impostaHomepage(url)
{
    if(document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
        document.body.setHomePage(url);
    }
}

    function CheckMail(mail)
    {
        n01=document.getElementById(mail).value;
        formacorretta = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

        if( formacorretta.test( n01 ) )
        {
           // alert("Indirizzo e-mail corretto!");
            return true;
        }
        else
        {
            alert("Indirizzo e-mail non valido");
            return false;
        }
    }



