/*********
void bookmark ( string, string )
parameters: url :
    - if NULL defaults to window.location.href
    - string must start with 'http://' or FireFox will not prompt the bookmark
parameters: description :
    - if NULL defaults to string within title tags of page
*********/
function bookmark(url, description){
    if (url == null) { // if description is not passed then default to page title
        url = window.location.href;
    }
    if (description == null) { // if description is not passed then default to page title
        description = document.title;
    }
    if (document.all){ // Test If: Internet Explorer
    window.external.AddFavorite(url, description); // AddFavorite is IE specific
    }
    else if (window.sidebar){ // Test If: Mozilla, Netscape, or FireFox
    window.sidebar.addPanel(description, url, ""); // sidebar.addPanel is Mozilla specific
    }
    else { // If all others
    window.alert("Press CTRL+T to bookmark this page"); // CTRL + T typically for Opera and other browsers
    }
    
}
