function PreviewDocument(theURL, winName, width, height) 
{
var leftVal=(screen.width - width) / 2;
var topVal = (screen.height - height) / 2;
window.open(theURL, winName, 'toolbar=no,resizable=1,location=no,scrollbars=yes,width='+width+',height='+height+',left='+leftVal+',top='+topVal)
}

function CreateBookmarkLink(title, url) 
{ 
    if (window.sidebar) 
        { 
        // Mozilla Firefox Bookmark		
        window.sidebar.addPanel(title, url,"");	
        } 
    else if( window.external ) 
        { 
        // IE Favorite		
        window.external.AddFavorite( url, title); 
        }	
    else if(window.opera && window.print) 
        { // Opera Hotlist		
        return true; 
        } 
} 

function SetHome(url)
{
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(url);
}