/** * bookmark * * @param url The url to bookmark * @param description Associate this description with the URL */ function addBookmark(url, description) { if(url != null) { if(navigator.appName=='Microsoft Internet Explorer') { window.external.AddFavorite(url, description); } else if (navigator.appName=='Netscape') { alert("Please press CTRL+D to bookmark this page"); } } } /** * setHomePage * * @param url The url to use as the home page */ function setHomePage(ref, url) { if(url != null) { if(navigator.appName=='Microsoft Internet Explorer') { ref.style.behavior='url(#default#homepage)'; ref.setHomePage(window.location); } else if (navigator.appName=='Netscape') { alert("Click 'Edit->Preferences' and then choose the 'Navigator' tag and click 'Use Current Page'"); } } } function popupAdvertisment(title, url, x, y, w, h) { var popupPath = "/system/moduleResources/misc_0.1/popups/" + url; if(location.href.indexOf("/portal/home") > -1) { var popup = window.open(popupPath, title, 'height=' + h + ',width=' + w + ',top=' + y + ',left=' + x); if(window.focus) { popup.focus(); } } }