function vedi(url, nprenot)
{
  LeftPosition = (screen.width) ? (screen.width-630)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-500)/2 : 0;
  window.open(url+'?nprenot='+nprenot,'Scheda','width=630, height=500, top='+TopPosition+', left='+LeftPosition+' , scrollbars=yes')
}


function isIE() {
	return document.all;
}

function ComparsaRowDisplay(opt)
{
     try
     {
          // Variables          
          var scel   = document.getElementById("Bodypartenzafium");
		  var scel2  = document.getElementById("Bodypartenzaroma");
		  var scel3  = document.getElementById("Bodypartenzastaz");
 		  var scel4  = document.getElementById("Bodyaltrapartenza");
                                    
          if (opt.options[1].selected == true) {
  
               scel.style.display = "block";
               scel.style.visibility = "visible";
                              
               }			   
          else {

               scel.style.visibility = "hidden";
		       scel.style.display = "none";
	       
	           } 
			   
		  if (opt.options[2].selected == true) {
  
               scel2.style.display = "block";
               scel2.style.visibility = "visible";
                              
               }			   
          else {

               scel2.style.visibility = "hidden";
		       scel2.style.display = "none";
	       
	           }  
			   
		  if (opt.options[3].selected == true) {
  
               scel3.style.display = "block";
               scel3.style.visibility = "visible";
                              
               }			   
          else {

               scel3.style.visibility = "hidden";
		       scel3.style.display = "none";
	       
	           }
		
		  if (opt.options[4].selected == true) {
  
               scel4.style.display = "block";
               scel4.style.visibility = "visible";
                              
               }			   
          else {

               scel4.style.visibility = "hidden";
		       scel4.style.display = "none";
	       
	           }  	  
                 
     }
     catch( expError )
     {
          alert( expError.number + "   " + expError.description );
     }
}

function ComparsaRowDisplay2(opt)
{
     try
     {
          // Variables          
          var scelar   = document.getElementById("Bodyarrivofium");
		  var scel2ar  = document.getElementById("Bodyarrivostaz");
		  var scel3ar  = document.getElementById("Bodyaltroarrivo"); 		  
                                    
          if (opt.options[1].selected == true) {
  
               scelar.style.display = "block";
               scelar.style.visibility = "visible";
                              
               }			   
          else {

               scelar.style.visibility = "hidden";
		       scelar.style.display = "none";
	       
	           } 
			   
		  if (opt.options[2].selected == true) {
  
               scel2ar.style.display = "block";
               scel2ar.style.visibility = "visible";
                              
               }			   
          else {

               scel2ar.style.visibility = "hidden";
		       scel2ar.style.display = "none";
	       
	           }  
			   
		  if (opt.options[3].selected == true) {
  
               scel3ar.style.display = "block";
               scel3ar.style.visibility = "visible";
                              
               }			   
          else {

               scel3ar.style.visibility = "hidden";
		       scel3ar.style.display = "none";
	       
	           }	    	  
                 
     }
     catch( expError )
     {
          alert( expError.number + "   " + expError.description );
     }
}

/*function ComparsaRowDisplay2old(box)
{
     try
     {    // Variables          
          var scel4  = document.getElementById("Bodyaltro");           
          
          if (box.checked == false) { 
		  
		         scel4.style.display = "block";     
				 scel4.style.visibility = "visible";  
		
		  } 
          
          else  { 
		  
		         scel4.style.visibility = "hidden";  
				 scel4.style.display = "none";        
				 
		  }
     }
	 
     catch( expError )
     {  
	 	   alert( expError.number + "   " + expError.description );  
	 }
}
*/

function ComparsaRowDisplay3(opt)
{
     try
     {
          // Variables          
          var scel5  = document.getElementById("Bodyazienda");
		  var scel6  = document.getElementById("Bodyprivato");
		                                      
          if (opt.options[1].selected == true) {
  
               scel5.style.display = "block";
               scel5.style.visibility = "visible";
                              
               }			   
          else {

               scel5.style.visibility = "hidden";
		       scel5.style.display = "none";
	       
	           } 
			   
		  if (opt.options[2].selected == true) {
  
               scel6.style.display = "block";
               scel6.style.visibility = "visible";
                              
               }			   
          else {

               scel6.style.visibility = "hidden";
		       scel6.style.display = "none";
	       
	           }  	
		 
                 
     }
     catch( expError )
     {
          alert( expError.number + "   " + expError.description );
     }
}


function ComparsaRowDisplay4(box)
{
     try
     {    // Variables          
          var scel7  = document.getElementById("Bodyaltrapersona");           
          
          if (box.checked == true) { 
		  
		         scel7.style.display = "block";     
				 scel7.style.visibility = "visible";  
		
		  } 
          
          else  { 
		  
		         scel7.style.visibility = "hidden";  
				 scel7.style.display = "none";        
				 
		  }
     }
	 
     catch( expError )
     {  
	 	   alert( expError.number + "   " + expError.description );  
	 }
}

function ComparsaRowDisplay5(opt)
{
     try
     {
          // Variables          
          var scel8  = document.getElementById("Bodyfattur");		  
		                                      
          if (opt.options[1].selected == true) {
  
               scel8.style.display = "block";
               scel8.style.visibility = "visible";
                              
               }			   
          else {

               scel8.style.visibility = "hidden";
		       scel8.style.display = "none";
	       
	           }                  
     }
	 
     catch( expError )
     {
          alert( expError.number + "   " + expError.description );
     }
}


