function bookmarksite(title, url)
{
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

var popUpWin = 0;
function popUpWindow(URLStr, left, top, width, height)
{ if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+''); } 


function clickButton(e, buttonid)
{ 
    var bt = document.getElementById(buttonid); 
    if (typeof bt == 'object'){ 
        if(navigator.appName.indexOf("Netscape")>(-1)){ 
                if (e.keyCode == 13){ 
                    bt.click(); 
                    return false; 
                } 
        } 
        if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
                if (event.keyCode == 13)
                { 
                    bt.click(); 
                    return false; 
                } 
        } 
    } 
} 

function InviaLink(ID_Filmato)
{
	popUpWindow('InviaEmail.aspx?ID_Filmato='+ID_Filmato, 20, 40, 402, 250)
}
