window.searchListEvent=function ($id)
{
if ($id.search(/^.*_idProvider$/g)>=0)
{
$.ajax({
url: "{{path('Etrali_GinangBundle_Provider_billingcontact',{'pk':'0'})}}".replace('0',$("#"+$id).val()),
async: false
}).done(function(data) {
var elems=data.split("\n");
$("#"+$id.replace("idProvider","idContact")).val(elems[0]);
$("#"+$id.replace("idProvider","idContact_tostring")).html(''+elems[1]+'');
$("#"+$id.replace("idProvider","idProviderAddress")).val(elems[2]);
$("#"+$id.replace("idProvider","idProviderAddress_tostring")).html(''+elems[3]+'');
}).fail(function(jqxhr,textStatus) {
});
}
else if ($id.search(/^.*_idPortType$/g)>=0)
{
$.ajax({
url: "{{path('Etrali_GinangBundle_PortType_infos',{'pk':'0'})}}".replace('0',$("#"+$id).val()),
async: false
}).done(function(data) {
var elems=data.split("\n");
$("#"+$id.replace("idPortType","nbTimeslots")).val(elems[0]);
$("#"+$id.replace("idPortType","nbChannels")).val(elems[1]);
}).fail(function(jqxhr,textStatus) {
});
}
}