function apriprogetto(){
		 if(document.progetto.canale.value == 3){
		     window.open('http://www.virtualpoleis.it', '', '')
		 }else if(document.progetto.canale.value == 2 && document.progetto.territorio.value == 7){
		     window.open('http://www.nelluniversoonline.it', '', '')
		 }else{
		     window.open('entranelprogetto.html', 'risposta', 'scrollbars,resizable,width=450,height=380,')
		 }
}

function aprinegotium(){
window.open('linknegotium.html', 'risposta', 'scrollbars,resizable,width=450,height=380,')
}

function aprieditoria(){
window.open('editoria.html', 'risposta', 'scrollbars,resizable,width=450,height=380,')
}
function aprilavoro(){
		 if(document.progetto.lavoro.value!=0){
		 window.open('offertelavoro.html', 'risposta', 'scrollbars,resizable,width=450,height=380,')
		 }
}
function testavirtual(){
		 if (document.progetto.canale.value == 3){
		 	document.progetto.territorio.disabled=true
		 }else{
		 	document.progetto.territorio.disabled=false 
		 }
		 
}

function linkinterniaree(titolo,indirizzo,regione){
titoli = new Array("Salute e Ambiente","Società e Protezione Civile","Beni Culturali e Patrimoni Edilizi","Imprese ed Economia","Scuola e Università","Turismo e Sport")
indirizzi = new Array("http://www.salute-ambiente.it/","http://www.societa-protezionecivile.it/","http://www.beniculturali-patrimoni.it/","http://www.imprese-economia.it/","http://www.scuola-universita.it/","http://www.turismo-sport.it/")
regioni = new Array("umbria.html","centro.html","italia.html","europa.html","libano.html","mondo.html")
area = window.open('', 'testata')

area.document.write("<html><head><title>", titoli[titolo], " - News, protagonisti, prodotti</title></head>")
	if(document.layers){
	area.document.write("<frameset cols='120,*' framespacing=0 border='false' frameborder=0>")
	area.document.write("<frame src='",indirizzi[indirizzo],"/testatasx.html' name='testatasx' noresize scrolling='NO' frameborder=0 marginwidth=0 marginheight=0>")
	area.document.write("<frameset rows='87,*'>")
	}else{
	area.document.write("<frameset cols='113,*' framespacing=0 border='false' frameborder=0>")
	area.document.write("<frame src='",indirizzi[indirizzo],"/testatasx.html' name='testatasx' noresize scrolling='NO' frameborder=0 marginwidth=0 marginheight=0>")
	area.document.write("<frameset rows='80,*'>")
	}

area.document.write("<frame src='",indirizzi[indirizzo],"/testataup.html' name='testataup' noresize scrolling='NO'  frameborder=0 marginwidth=0 marginheight=0>")
area.document.write("<frame src='",indirizzi[indirizzo],regioni[regione],"' name='corpoprincipale' noresize scrolling='auto'  frameborder=0 marginwidth=0 marginheight=0>")
area.document.write("</frameset></frameset><noframes><body></body></noframes></html>")

}

function aprinotizia(titolo,indirizzo,link){
giornale = window.open('', 'testata')
estensione="html"
if(indirizzo=="http://www.inumbriaonline.it/" || indirizzo=="http://www.initaliaonline.it/" || indirizzo=="http://www.nelcentroonline.it/"){
estensione="php"
} 
giornale.document.write("<html><head><TITLE>",titolo,"</TITLE></head>")

	if(document.layers){
	giornale.document.write("<frameset cols='120,*' framespacing=0 border='false' frameborder=0>")
	giornale.document.write("<frame src='",indirizzo,"testatasx.html' name='testatasx' noresize scrolling='NO' frameborder=0 marginwidth=0 marginheight=0>")
	giornale.document.write("<frameset rows='87,*'>")
	}else{
	giornale.document.write("<frameset cols='114,*' framespacing=0 border='false' frameborder=0>")
	giornale.document.write("<frame src='",indirizzo,"testatasx.html' name='testatasx' noresize scrolling='NO' frameborder=0 marginwidth=0 marginheight=0>")
	giornale.document.write("<frameset rows='80,*'>")
	}

giornale.document.write("<frame src='",indirizzo,"testataup.",estensione,"' name='testataup' noresize scrolling='NO' frameborder=0 marginwidth=0 marginheight=0>")
giornale.document.write("<frame src='",link,"' name='principale' noresize scrolling='auto' frameborder=0 marginwidth=0 marginheight=0>")
giornale.document.write("</frameset></frameset><noframes><body></body></noframes></html>")

}
