function addBookmark() 
{
/*	if (window.sidebar) 
	{  
		window.sidebar.addPanel(document.title, document.location,"");
	} else 
	if( document.all ) 
	{  
		window.external.AddFavorite( document.location, document.title);  
	} else 
	if( window.opera && window.print ) 
	{  
		return true;  
	}  
*/	
    if (typeof window.external != "undefined" && typeof window.external.AddFavorite != "undefined") {
        window.external.AddFavorite (window.location, document.title);
    } else if (typeof window.opera != "undefined" && window.opera.version() < 9) {
        alert ("Нажмите [Ctrl] + [T] для создания закладки на эту страницу.");
    } else {
        alert ("Нажмите [Ctrl] + [D] для создания закладки на эту страницу.");
    }
}

function homePage() {
	if( window.external ) {
		document.body.style.behavior = "url(#default#homepage)";
    	document.body.setHomePage(window.location);
 	} else {
		alert("Your browser does not support setting the home page automatically.");
	}
}

function printView()
{
	window.location=window.location+'?&print=1&no_cache=1';
}

function openPopup(url,width,height)
{
	popup_wnd = window.open(url, "popup_wnd", "location=no, status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=no,width="+width+",height="+height);
	popup_wnd.focus();
}

function getUrlParam()
{
	return '?&url='+escape(window.location);
}
