// Copyright (c) 2002, 2003, 2004 Filippo Fadda all rights reserved
// Version $Revision: 1.44 $
// Last update on $Date: 2003/12/01 15:21:42 $ by $Author: fadda $

function askConfirm(prompt, url) {
  response = window.confirm(prompt)
  if (response)
    window.location.href = url
} // end of askConfirm


function addSearchPlugin(name, ext, cat) {
  if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
    window.sidebar.addSearchEngine("http://programmazione.it/"+name+".src", "http://programmazione.it/"+name+"."+ext, name, cat);
  else
    alert("Netscape 6, Mozilla or Firefox are needed to install a sherlock plugin.");
} // end of addSearchPlugin


function growBanner(elementId) {
   document.getElementById(elementId).style.display = 'block';
} // end of growBanner


function shrinkBanner(elementId) {
   document.getElementById(elementId).style.display = 'none';
} // end of shrinkBanner

