var errFunc = function(t){alert('Error ' + t.status + ' -- ' + t.statusText);} function reverso( phoneNumber, func, evt ) { if ( phoneNumber.length>=10 ) { new Ajax.Request('http://www.reversoform.com/includes/api.controler.reverso.php', { parameters: 'phone_number='+phoneNumber+'&method=json', onSuccess:eval(func), onFailure:errFunc }); } return false; }; function cleanForm() { $$('input[type="text"]').each(function(el){el.value='';}); $('phone_number_1').value="0146..."; $('phone_number_1').select(); }; function mo(el,s) { el.src = '/img/iphone/pad/'+s+'.gif'; }; function iphonePad() { Effect.Fade('floating_iphone',{duration:0.2}); Effect.SlideDown('iphone_pad_c',{duration:0.3}); $$('input[type="text"]').each(function(el){el.style.display='none';}); }; function padAct(v) { if ( $('innerPhone').innerHTML.length<10 ) { $('innerPhone').innerHTML += v; } }; function padDel() { var val = $('innerPhone').innerHTML; $('innerPhone').innerHTML=''; for(var i=0 ; i