



var letto = false
var letto2 = false

function scrividata(Nomeform,d,campo)  // NOT USED
 {
  eval("document."+Nomeform+"."+campo).value=d
 }
 
 function sethours(Nomeform,campo)  //NOT USED
 {

	
	var datestring = "January 1, 2000 00:00 AM";
	var Sec = 1000;
   	var Min = Sec * 60;       
   	var Hr = Min * 60;
   	var Dy = Hr * 24;
	d1 = Date.parse(datestring) // number od milisecond sinse 1970 to 2000
	d2 = Date.parse(Date()) // number od miliseconds since 1970 to now
	d3=d2-d1 // number of milisecons since 2000
	
	alert("dni"+Math.round(Math.abs(d3 / Dy)) +"seco"+Math.round(Math.abs(d3 / Sec)))
  	//eval("document."+Nomeform+"."+campo).value=d
 }

function aprimailing2(questo){
	var mio = document.getElementById("lyr_mailing")
	if(questo.value=="si"){
		mio.style.display="block"
		//parent.topzero.location="../carica.asp?caricaora=2"
	}else{
		mio.style.display="none"
		//parent.topzero.location="../carica.asp?caricaora=2"
	}
}


function controlla_1step2(questo){
	//var mio = document.getElementById("lyr_form")
	if(questo.checked){
		if(letto == false){
			if(typeof document.req.lingua == "string")
				alert(eval("step1_"+document.req.lingua))
			else
				alert(eval("step1_"+document.req.lingua.value))
		}
		
	}
	
}


function controlla_2step2(questo){
	if(questo.value=="si"){
		if(letto2 == false){
			//alert("Prima di procedere con la compilazione del modulo, vi consigliamo di leggere\nla nota informativa sul trattamento e l'invio dei dati personali")
			if(typeof document.req.lingua == "string")
				alert(eval("step2_"+document.req.lingua))
			else
				alert(eval("step2_"+document.req.lingua.value))
			
		}
		//parent.topzero.location="../carica.asp?caricaora=3"
	}
}

function copiamail(questo){
	document.req.mlist.value=questo.value
}