﻿selectNews = function(tableId)
{
   document.getElementById(tableId).className = "newsContainerSelected";
}

deselectNews = function(tableId)
{
     document.getElementById(tableId).className = "newsContainerDeselected";
}

showNews = function(hiddenfieldPk)
{
    var hiddenField = document.getElementById(hiddenfieldPk);
    
    var win = window.open("SchedaDettagli.aspx?pk=" + hiddenField.value,"SchedaDettagli","width=740px,height=500px,status=no,resizable=yes,titleBar=no,scrollbars=yes"); 
    win.focus();
}

ZoomImage = function(pkImmagine)
{
	var win = window.open("ZoomImage.aspx?pk=" + pkImmagine,"ZoomImmagine","status=no,resizable=yes,titleBar=no,scrollbars=no");
	win.focus();
}

ShowAllegato = function(path)
{
    var win = window.open("ViewAllegato.aspx?path=" + path,"ViewAllegato","status=yes,resizable=yes,titleBar=yes,menuBar=yes,scrollbars=yes,width=700px,height=400px");
    win.focus();
}

richiediDettagli = function(pkNews)
{
    var winDetails = window.open("RichiestaDettagli.aspx?pk=" + pkNews,"DetailsRequest","width=500px,height=290px"); 
    winDetails.focus(); 
}

mostraMaggioriDettagli = function(pkNews)
{
    var win = window.open("SchedaDettagli.aspx?pk=" + pkNews, "SchedaDettagli","width=720px,height=500px,status=no,resizable=yes,titleBar=no,scrollbars=no"); 
    win.focus();
}
