// JavaScript Document

function addBookmark(url, title) { 

            if (!url) url=location.href;

            if (!title) title=document.title;

 

            if ((typeof window.sidebar=='object') && (typeof window.sidebar.addPanel=='function')) {

                                    //Gecko

                                    window.sidebar.addPanel(title, url, '');

                        } else if (typeof window.external=='object') {

                                    //IE4+

                                    window.external.AddFavorite(url, title);

                        } else if (window.opera && document.createElement) {

                                    //Opera7+

                                    var a=document.createElement('A');

                                    if (!a) return false; 

                                    //IF Opera 6

                                    a.setAttribute('rel','sidebar');

                                    a.setAttribute('href',url);

                                    a.setAttribute('title',title);

                                    a.click();

                        } else {

                                    return false;

            }

            return true;

}
