function GoToURL(strX)
	{
		if (strX == "" || strX == null || strX == "undefined")
		{	return;	}
		window.location.href = strX;
	}

function Mappa(a)
	{
	window.open(a,'','toolbar=0,status=0,height=501 width=450,resizable=0,scrollbars=0')
	}

function cartinaricerca(a)
	{
	window.open(a,'','toolbar=0,status=0,height=610 width=433,resizable=0,scrollbars=0')
	}


function visual(a,b,c,d,e,f,g)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                        d.style.display = '';
                        e.style.display = '';
                        f.style.display = '';
                        g.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';
                        d.style.display = 'none';
                        e.style.display = 'none';
                        f.style.display = 'none';
                        g.style.display = 'none';
                                       			}
}

function visual1(a)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';

                                       			}
}
function visual2(a,b)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';

                                       			}
}
function visual3(a,b,c)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';

                                       			}
}
function visual4(a,b,c,d)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                        d.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';
                        d.style.display = 'none';

                                       			}
}
function visual5(a,b,c,d,e)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                        d.style.display = '';
                        e.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';
                        d.style.display = 'none';
                        e.style.display = 'none';

                                       			}
}
function visual6(a,b,c,d,e,f)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                        d.style.display = '';
                        e.style.display = '';
                        f.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';
                        d.style.display = 'none';
                        e.style.display = 'none';
                        f.style.display = 'none';

                                       			}
}
function visual12(a,b,c,d,e,f,g,h,i,m,n,l)
{
                if (a.style.display =='none')
                		{
                        a.style.display = '';
                        b.style.display = '';
                        c.style.display = '';
                        d.style.display = '';
                        e.style.display = '';
                        f.style.display = '';
                        g.style.display = '';
                        h.style.display = '';
                        i.style.display = '';
                        m.style.display = '';
                        n.style.display = '';
                        l.style.display = '';
                                            }
                else 	{
                        a.style.display = 'none';
                        b.style.display = 'none';
                        c.style.display = 'none';
                        d.style.display = 'none';
                        e.style.display = 'none';
                        f.style.display = 'none';
                        g.style.display = 'none';
                        h.style.display = 'none';
                        i.style.display = 'none';
                        m.style.display = 'none';
                        n.style.display = 'none';
                        l.style.display = 'none';

                                       			}
}

function nuovo()
	{
	window.open('/can/comuni/extranet/menu/inserimento.asp?ID_comune=<%=Request("ID_Comune")%>','','toolbar=0,status=0,resizable=1,scrollbars=0')
	}
	
function nuovopagina()
	{
	window.open('/can/comuni/extranet/menu/inserimentopagina.asp?ID_comune=<%=Request("ID_Comune")%>','','toolbar=0,status=0,resizable=1,scrollbars=0')
	}
	
function modifica()
	{
	window.open('/can/comuni/extranet/menu/premodifica.asp?ID_comune=<%=Request("ID_Comune")%>','','toolbar=0,status=0,resizable=1,scrollbars=0')
	}
	
function elimina()
	{
	window.open('/can/comuni/extranet/menu/preelimina.asp?ID_comune=<%=Request("ID_Comune")%>','','toolbar=0,status=0,resizable=1,scrollbars=0')
	}
	
	
function extranet(a)
	{
	window.open(a,'','toolbar=0,status=0,,resizable=1,scrollbars=0')
	}
	
function ad1(a)
    {
	a.src='../immagini/extranet1.gif';
    }
    
function ad2(a)
    {
	a.src='../immagini/extranet.gif';
    }

