
FormController.prototype.controllaCellulare = function(id,obligatorio){
	var to_controll = $(id); 
		var value = to_controll.value; 
		var msg ="";
		if(obligatorio==1&&value==""){
			msg = this.GetErrorMsg(id,'ROOT_ERROR_OBLIGATORIO');
		}
		if(value!=""){
			if(value.startsWith("+39")){
				value = value.replace("+39",""); 			
			}		
			if(value.startsWith("0039")){
				value = value.substring(4,value.length); 			
			}		
			if(!value.startsWith("3")){
				msg = this.GetErrorMsg(id,'ROOT_ERROR_CELLULARE');				 			
			}		
			if(!value.length==10){
				msg = this.GetErrorMsg(id,'ROOT_ERROR_CELLULARE');				 			
			}		
		}
		this.CreaMsgError(msg,id,""); 
}

Translator.LINGUE['EN']['ROOT_ERROR_CELLULARE'] 			= 	"Numero di cellualare non corretto"; 
Translator.LINGUE['IT']['ROOT_ERROR_CELLULARE'] 			= 	"Numero di cellualare non corretto"; 

