
//-- mail
function mail( who, subject )
{
    if( who.indexOf('@')!= -1 )
        parent.location.href='mailto:'+who+'?subject='+subject;
    else
        parent.location.href='mailto:'+who+'@mycompany.com?subject='+subject;
}

//-- twitter 
function twitter( post )
{
    document.write("<a title=\""+post+"\" style=\"padding: 2px; margin-top: 2px; font-size: 12px; font-family: verdana; background-color: lightgrey; color: red; text-decoration: none;\" href=\"http://twitter.com/home?status="+escape(post)+"\">Post To Twitter</a>" );
}

function changeColor( id, color )
{
    //alert( "change color to "+color ) ;
    if (document.getElementById)
        document.getElementById(id).style.backgroundColor = color;
    else if (document.layers)
        document[id].bgColor = color;
    else if (document.all)
        document.all[id].style.backgroundColor = color;
}

