var startfont = "<font face=verdana size=1>";
var endfont = "</font>";

var info = new Array();
info[0] = startfont + "Tutti i palinsesti di musica e spettacoli" + endfont;
info[1] = startfont + "Le nostre strutture convenzionate" + endfont;
info[2] = startfont + "Soluzioni per le foto e il video del vostro matrimonio" + endfont;
info[3] = startfont + "Catalogo 2004-2005" + endfont;
info[4] = startfont + "Il nostro parco macchine" + endfont;
info[5] = startfont + "Catalogo 2004-2005" + endfont;
info[6] = startfont + "Il matrimonio anche in comode rate" + endfont;
info[7] = startfont + "Contatta il nostro servizio clienti" + endfont;

function popupSpecialeAziende(){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 1;
var op_resize = 0;

var op_wid = 470;
var op_height = 368;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pagina = "specialeAziende.html";
var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}

function popupFilosofia(){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 470;
var op_height = 368;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pagina = "filosofia.html";
var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}

function testodinamico(index){
    if(index==0) {document.all('info').style.top='28';document.all('info').style.left='103';}
    else if(index==1) {document.all('info').style.top='68';document.all('info').style.left='103';}
    else if(index==2) {document.all('info').style.top='108';document.all('info').style.left='103';}
    else if(index==3) {document.all('info').style.top='148';document.all('info').style.left='103';}
    else if(index==4) {document.all('info').style.top='188';document.all('info').style.left='103';}
    else if(index==5) {document.all('info').style.top='228';document.all('info').style.left='103';}
    else if(index==6) {document.all('info').style.top='268';document.all('info').style.left='103';}
    else if(index==7) {document.all('info').style.top='308';document.all('info').style.left='103';}

	document.all('info').style.display='';	
	document.all('testo').innerHTML=info[index];	
}

function nascondi(){
	document.all('info').style.display='none';	
}

function controllaModuloContattaci(){

	var str = "";

	if(document.form1.nome.value==""){	str = str + "Il campo Nome è obbligatorio\n";}	
	if(document.form1.cognome.value==""){	str = str + "Il campo Cognome è obbligatorio\n";}	
	if(document.form1.via.value==""){	str = str + "Il campo Via è obbligatorio\n";}	
	if(document.form1.citta.value==""){	str = str + "Il campo Città è obbligatorio\n";}	
	if(document.form1.provincia.value==""){	str = str + "Il campo Provincia è obbligatorio\n";}	
	if(document.form1.cap.value==""){	str = str + "Il campo CAP è obbligatorio\n";}	
	if(document.form1.telefono.value==""){	str = str + "Il campo Telefono è obbligatorio\n";}	
	if(document.form1.cellulare.value==""){	str = str + "Il campo Cellulare è obbligatorio\n";}	
	if(document.form1.descrizione.value==""){	str = str + "Il campo Descrizione è obbligatorio\n";}	

	if(document.form1.autorizzo.value!=null){
		if(document.form1.autorizzo.value=="no"){
			str = str + "Non posso procedere senza autorizzazione\n";
		}				
	}else{
		for(var i=0;i<document.form1.autorizzo.length;i++) 	{
			 if(document.form1.autorizzo[i].checked){
				if(document.form1.autorizzo[i].value=="no"){
					str = str + "Non posso procedere senza autorizzazione\n";
				}				
			 }
  		}
	}
	
	if (str != ""){
		alert (str);
		return false;
	}else{
		return true;
	}	
	
}

function modulo_contatto(){
var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 1;
var op_resize = 0;

var op_wid = 600;
var op_heigh = 400;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_heigh;

window.open('modulo_contatto.asp', '', option );
}

function mappa(){
var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 430;
var op_heigh = 365;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_heigh;

window.open('mappa.htm', '', option );
}

function mappa(){
var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 430;
var op_heigh = 365;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_heigh;

window.open('mappa.htm', '', option );
}

function caricaCanzone(canzone){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 285;
var op_height = 225;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pathCanzone = "mp3/" + canzone;
var pagina = "showcanzone.asp?path=" + pathCanzone;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}
function caricaCanzone(canzone){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 285;
var op_height = 225;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pathCanzone = "mp3/" + canzone;
var pagina = "showcanzone.asp?path=" + pathCanzone;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}

function caricaVideo(video){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 0;
var op_resize = 0;

var op_wid = 400;
var op_height = 300;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pathVideo = "video/" + video;
var pagina = "showvideo.asp?path=" + pathVideo;

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}

function popupElencoSerate(){

if (document.all){ 
	var x = window.screenLeft; 
	var y = window.screenTop; 
	var w = window.document.body.offsetWidth; 
	var h = window.document.body.offsetHeight; 
}else{ 
	var x = window.screenX; 
	var y = window.screenY; 
	var w = window.outerWidth; 
	var h = window.outerHeight; 
} 

var op_tool = 0;
var op_loc_box = 0;
var op_dir = 0;
var op_stat = 0;
var op_menu = 0;
var op_scroll = 1;
var op_resize = 1;

var op_wid = 800;
var op_height = 600;

var cntx = x + Math.round((w - op_wid) / 2); 
var cnty = y + Math.round((h - op_height) / 2); 

var pagina = "elencoserate.asp";

var option = "toolbar=" + op_tool + ",location=" + op_loc_box +
",directories="
+ op_dir + ",status=" + op_stat + ",menubar=" + op_menu + ",scrollbars="
+ op_scroll + ",resizable=" + op_resize + ",width=" + op_wid + ",height="
+ op_height + ",left=" + cntx + ",top=" + cnty;

window.open (pagina, '', option); 
}


