//open the email window
function email_popup(email_url) {
    window.open(email_url, "_blank", "width=500,height=500,toolbar=0,menubar=0,location=0,resizable=0,scrollbars=1,status=0");
}

//bookmark the page
function bookmark(url,title){    
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) 
    {
        window.external.AddFavorite(url,title);
    } else if (navigator.appName == "Netscape") {
        window.sidebar.addPanel(title,url,"");
    } else {
        alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
    }
}

//change text size 
var percent = 100;
var max = 140;
var min = 80;
var step = 20;
function changeTextSize(up, elementId)
{  
    var contentToResize = document.getElementById(elementId)
    if (up)
    {
        if (percent < max)
            percent += step;
    }
    if (!up)
    {
        if (percent > min)
            percent -= step;
    }     
    contentToResize.style.fontSize = percent + "%";    
}
