function isValid() {
  var a = document.form1.A.value;
  var b = document.form1.B.value;
  var c = document.form1.C.value;
  var d = document.form1.D.value;
  var e = document.form1.E.value;
  var f = document.form1.F.value;
  var g = document.form1.G.value;
  var h = document.form1.H.value;
  var i = document.form1.I.value;  
  var j = document.form1.J.value;
  var k = document.form1.K.value;
  var l = document.form1.L.value;
  var m = document.form1.M.value;
  var n = document.form1.N.value;
  var o = document.form1.O.value;
  var p = document.form1.P.value;

  if(a.length == 0 || b.length == 0 || c.length == 0|| d.length == 0|| e.length == 0|| f.length == 0|| g.length == 0|| h.length == 0|| i.length == 0|| j.length == 0|| k.length == 0|| l.length == 0|| m.length == 0|| n.length == 0|| o.length == 0|| p.length == 0)
	if(confirm('Ci sono dei campi vuoti, continuare?')) 
	  return true; 
	else 
	  return false;	
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=300,left = 50,top = 80');");
}


function popUp_3(URL, left, top) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=300,left = "+left+",top = "+top+"');");
}

function popUpCoord(URL,width_ins,height_ins) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width_ins + ",height=" + height_ins + ",left = 50,top = 80');");
}

function popUpSpec(URL,width,height,left,top) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" +width+ ",height=" + height+ ",left = "+left+",top = "+top+"');");
}

function showtip(current,e,text){

 if (document.all||document.getElementById){
		thetitle=text.split('<br>')
		if (thetitle.length>1){
		 thetitles=''
		 for (i=0;i<thetitle.length;i++)
		 thetitles+=thetitle[i]
		 current.title=thetitles
 		} else current.title=text
 }
 else if (document.layers){
	document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
	document.tooltip.document.close()
	document.tooltip.left=e.pageX+5
	document.tooltip.top=e.pageY+5
	document.tooltip.visibility="show"
 }
}

function hidetip(){
 if (document.layers)
	document.tooltip.visibility="hidden"
}



