
function rendererDate(value, p, record){
	return value.dateFormat('d M Y');
}

function rendererPhoto(value, p, record){
	return String.format('<b><i>{0}</i></b>', '<img src="/portail/gaaservices/design/img/production/thumbs/NO-Photo.jpg"/>');
	//return String.format('<b><i>{0}</i></b>', '<img src="/portail/gaaservices/design/img/production/thumbs/V1-12-2485.gif"/>');
//	return String.format('<b><i>{0}</i></b>', '<img src="/portail/gaaservices/design/img/production/thumbs/record.data['photo'].jpg"/>');

} 

function rendererPrix(value, p, record){
	var ret;
	if(value == 0 || value == ""){
		ret =  "Indiff&eacute;rent.";
	}else{
		ret =  value;
	}
	return ret;
}


function rendererAnneemenservice(value, p, record){
	if(value <= 1950){
		return "Nc.";
	}
	return value;
}

function rendererKm(value, p, record){
	var km;
	if(value == 0 || value == ""){
		km = "Indiff&eacute;rent."
	}else{
		km = value;
	}
	return km;
}

function rendererAnnonce(value, p, record){
	tabAnnonce = record.data['annonce'];
	return String.format('<a href="/Particulier/Detailsannonce/index/transaction/achat/idannonce/{2}" onclick="return false;" class="annonce_achat"><b>{0}</b>&nbsp;{1}</a>',tabAnnonce[0],tabAnnonce[1], record.data['idannonce']);
}