function isnum(obj) {
	if (isNaN(obj.value) || parseInt(obj.value)<0 || parseInt(obj.value) > 9999999.99)
	{
	alert('Nel campo è possibile immettere solo numeri nel\nformato 9999999.99');
	obj.value="";
	obj.focus();
	}
}
function conferma() {
	var answer = confirm("Sei sicuro di eliminare definitivamente la Pratica?")
	if (answer){
		return true;
	}
	else{
		return false;
	}
}
function ck_competenze() {
	  var ritorno = true;
	  if (document.getElementById('titit').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titit2').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen2').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_soci() {
	  var ritorno = true;
	  if (document.getElementById('tnom').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tnaz').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tluo').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('popup_container').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_partner() {
	  var ritorno = true;
	  if (document.getElementById('tnom').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tind').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tloc').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tcap').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tpro').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_legal() {
	  var ritorno = true;
	  if (document.getElementById('tnom').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_produzioni() {
	  var ritorno = true;
	  if (document.getElementById('tipopro').value=="-"){
		ritorno = false;
	  }
	  if (document.getElementById('titit').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titit2').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen2').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('datadal').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('dataal').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_spot() {
	  var ritorno = true;
	  if (document.getElementById('titit').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('datadal').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('dataal').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_richiesta() {
	  var ritorno = true;
	  if (document.getElementById('ricaccetta').value==""){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function conferma() {
	var answer = confirm("Sei sicuro di eliminare definitivamente il record?")
	if (answer){
		return true;
	}
	else{
		return false;
	}
}
function ck_eventi() {
	  var ritorno = true;
	  if (document.getElementById('tipoeve').value=="-"){
		ritorno = false;
	  }
	  if (document.getElementById('titit').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titit2').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('titen2').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('idcomp').value=="-"){
		ritorno = false;
	  }
	  if (document.getElementById('datadal').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('dataal').value==""){
		ritorno = false;
	  }
	  if ((document.getElementById('f_iscrizione').value=="SI")&&(document.getElementById('datafinereg').value=="")){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!');
		return false;
	  }
}
function ck_registra() {
	  var ritorno = true;
	  if (document.getElementById('tipo').value=="-"){
		ritorno = false;
	  }
	  if (document.getElementById('categoria').value=="-"){
		ritorno = false;
	  }
	  if ( (document.getElementById('tipo').value=="A")&&(document.getElementById('ragsoc').value=="")){
		ritorno = false;
	  }
	  if (document.getElementById('cog').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('nom').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('nazi').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('password').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('tel').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('email').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('spamcheck').value!=10){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!\n\nFields marked with an asterisk are required!\n');
		return false;
	  }
}
function ck_sugge() {
	  var ritorno = true;
	  if (document.getElementById('cog').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('nom').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('nazi').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('email').value==""){
		ritorno = false;
	  }
	  if (document.getElementById('spamcheck').value!=10){
		ritorno = false;
	  }
	  if( ritorno == true){
		return true;
	  }else{
		alert('I campi asteriscati sono obbligatori!\n\nFields marked with an asterisk are required!\n');
		return false;
	  }
}



