function getInfoFromLookup(phone, type) { 
            new Ajax.Request('/ajaxscript/phonebook_lookup.php',{
                parameters: {phone_number: phone,
                            type: type},
                method: 'get',
                 onSuccess:function(transport) {
                        var json_result = eval('(' + transport.responseText  + ')');
                        for(i = 0; i<json_result.length; i++) {
                             el = document.getElementById(json_result[i].id);
                             if(el)
                             {
                                el.value = json_result[i].value;
                             }
                         }
                         
                         checkPostalCode(document.getElementById('postcode').value);
                                                                         if(typeof validateAll == 'function'){
                                                                            validateAll();
                                                                         }
                 }                                     
            })
}
