function SetHome(obj,vrl){
        try{
            obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
            }
        catch(e){
                if(window.netscape) {
                        try { 
						netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");  
                        }  
                        catch (e){ 
                                alert("Your Browser does not support ");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}

function addFavorite(){
    var vDomainName=window.location.href;
    var description=document.title;
    try{//IE
        window.external.AddFavorite(vDomainName,description);
    }catch(e){//FF
        window.sidebar.addPanel(description,vDomainName,"");
    }
}
<!-- 
//if (window.Event) document.captureEvents(Event.MOUSEUP); 
 
function nocontextmenu() 
{ 
event.cancelBubble = true 
event.returnValue = false; 
return false; 
} 
function nocontextmenu1() 
{ 
return false; 
} 
function norightclick(e) 
{ 
if (window.Event) 
{ 
   if (e.which == 2 || e.which == 3) 
    return false; 
} 
else 
   if (event.button == 2 || event.button == 3) 
   { 
    event.cancelBubble = true 
    event.returnValue = false; 
    return false; 
   } 
} 
//document.oncontextmenu = nocontextmenu;   // for IE5+ 
//document.onmousedown = norightclick;
//document.onselectstart=nocontextmenu1; 
// for all others 
//--> 


