  function check() {
  	var importoInt = document.form_pagamento.IMPORTO_INT.value;
	  if ((isNaN(importoInt)) || (importoInt == "") || (importoInt == "undefined")) {   
	   alert("Il campo 'Importo' è numerico e obbligatorio.");   
		 document.form_pagamento.IMPORTO_INT.value="";
		 document.form_pagamento.IMPORTO_INT.focus();   
		 return false;
	  } else if ( parseInt(importoInt) < 10 ) {
	   alert("Il campo 'Importo' deve essere maggiore o uguale a 10.");   
		 document.form_pagamento.IMPORTO_INT.value="";
		 document.form_pagamento.IMPORTO_INT.focus();   
		 return false;
	  } else if ( parseInt(importoInt) > 10000 ) {
	   alert("Il campo 'Importo' deve essere minore di 10000.");   
		 document.form_pagamento.IMPORTO_INT.value="";
		 document.form_pagamento.IMPORTO_INT.focus();   
		 return false;
	  }	
		
  	var importoDec = document.form_pagamento.IMPORTO_DEC.value;
	  if ((isNaN(importoDec)) || (importoDec == "") || (importoDec == "undefined")) {   
	   alert("Il campo 'Importo' è numerico e obbligatorio.");   
		 document.form_pagamento.IMPORTO_DEC.value="";
		 document.form_pagamento.IMPORTO_DEC.focus();   
		 return false;
	  } else if ( parseInt(importoDec) < 0 ) {
	   alert("Il campo 'Importo-centesimi' deve essere maggiore o uguale a 0.");   
		 document.form_pagamento.IMPORTO_DEC.value="";
		 document.form_pagamento.IMPORTO_DEC.focus();   
		 return false;
	  } else if ( parseInt(importoDec) > 99 ) {
	   alert("Il campo 'Importo' deve essere minore di 99.");   
		 document.form_pagamento.IMPORTO_DEC.value="";
		 document.form_pagamento.IMPORTO_DEC.focus();   
		 return false;
	  }


  	var annoFattura = document.form_pagamento.annodoc.value;
	  if ( (isNaN(annoFattura)) || (annoFattura == "") || (annoFattura == "undefined") ) {   
	   alert("Il campo 'Anno emissione documento' è numerico, obbligatorio.");   
		 document.form_pagamento.annodoc.value="";
		 document.form_pagamento.annodoc.focus();   
		 return false;
	  }
		
  	var numFattura = document.form_pagamento.numdoc.value;
	  if ( (isNaN(numFattura)) || (numFattura == "") || (numFattura == "undefined") ) {   
	   alert("Il campo 'Numero documento' è numerico, obbligatorio.");   
		 document.form_pagamento.numdoc.value="";
		 document.form_pagamento.numdoc.focus();   
		 return false;
	  }
		
	var tipoFatturaFerrara = document.form_pagamento.tipofattura[0].checked;
	var tipoFatturaSGP = document.form_pagamento.tipofattura[2].checked;
	var tipoFatturaAltro = document.form_pagamento.tipofattura[1].checked;
	if (tipoFatturaFerrara == false && tipoFatturaSGP == false && tipoFatturaAltro == false) {
	    alert("Il campo 'Tipo servizio' è obbligatorio.");   
		return false;
	}

  return true;
	}  


  function go(n){
      document.images.photoslider.src=photos[n];
      document.images.photoslider.alt=alt[n];			
	}

