/* NETtuno Javascript Document ver.1.0 date.08.02.07 */

<!--
function doClock(){ 
	var t=new Date(),a=doClock.arguments,str="",i,a1,lang="5";
	var month=new Array('gennaio','genn', 'febbraio','febbr', 'marzo','mar', 'aprile','apr', 'maggio','magg', 'giugno','giugno', 'luglio','luglio', 'agosto','ag', 'settembre','sett', 'ottobre','ott', 'novembre','nov', 'dicembre','dic');
	var tday= new Array('Domenica','Domenica','Lunedi','Lunedi', 'Martedi','Martedi', 'Mercoledi','Mercoledi','Giovedi','Giovedi','Venerdi','Venerdi','Sabato','Sabato');
	for(i=0;i<a.length;i++) {
		a1=a[i].charAt(1);
		switch (a[i].charAt(0)) {
			case "M":if  ((Number(a1)==3) && ((t.getMonth()+1)<10)) 
				str+="0";
				str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];
			break;
			case "D": if ((Number(a1)==1) && (t.getDate()<10)) 
				str+="0";
				str+=t.getDate();
			break;
			case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);
			break;
			case "W":str+=tday[t.getDay()*2+Number(a1)];
			break; 
			default: str+=unescape(a[i]);
		}
	}
	return str;
}
function neWindow(theURL,winName,width,height,features) { 
	if(window.screen){
		per_ancho=(width/800)*100;//porcentaje screen-ancho
		per_alto=(height/width)*100;//porcentaje de ancho-alto
		win_ancho=(screen.width*per_ancho)/100;//ancho de la ventana
		win_alto=(win_ancho*per_alto)/100;//alto de la ventana
		x=(screen.width-win_ancho)/2;//centra x
		y=(screen.height-win_alto)/2;//centra y
	}else{// si el buscador es 4-- queda todo igual :(
		x=0;
		y=0;
		win_ancho=w;
		win_alto=y;
	}
	winfeatures=("top="+y+",left="+x+",width="+win_ancho+",height="+win_alto+","+features);
	window.open(theURL,winName,winfeatures);
}
function conferma(){

	check=1;

	if (document.form1.name.value.length == 0){
		alert("Inserire il nome!");
	  	check=0;		
		return false;
	}

	if (document.form1.tipologia.selectedIndex == 0){
		alert("Bisogna selezionare una tipologia!");
	  	check=0;		
		return false;
	}	

	
	if(document.form1.email.value==''){
		check=0;
		alert('Inserire la mail');
		return false;
	}
		
	EmailAddr = document.form1.email.value;
	Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	if (Filtro.test(EmailAddr)){
	}
	else{
	  check=0;
	  alert('Controlla l\'indirizzo e-mail inserito');
	  return false;
	}	
	if (check==1){
		document.form1.submit();
	}
}

// -->