var updater;
function bluepagesAutoUpdate(){
updater = new nsExtensionUpdater("http://goat.austin.ibm.com:8080/update.xml", "0.1", "xulbluepages.jar");
updater.getUpdate(progressFunc);
}
/*
aProgressNum
-1 An error has occured
0 No new update available
1 New update available. If we are to proceed and install
the update, return true, else return false.
2 New update installed
*/
function progressFunc(aProgressNum){
var rv = true;
switch (aProgressNum){
case -1 :
alert("An Error Has Occured")
break;
case 1 :
// here is where you should ask if the user really wants to install the update
// return true to do the update, false to not.
rv = confirm("An update is available. Do you want to install it?");
break;