
function htmlize_result_creativity(resultId, obj, recordId) {
    
     var divResult = document.getElementById(obj.params.resultContainerId);
    var result    = obj.getElement(recordId);
    var record    = cloneOf(result.object);
    var objName   = obj.params.objName;

    var model     = document.getElementById(objName+'_resultModel').innerHTML;
    
    for(attribute in result) {
        if(typeof attribute == 'string') {
            model = model.replace(new RegExp("\\[\\["+attribute.toUpperCase()+"\\]\\]", 'g'), result[attribute]);
            model = model.replace(new RegExp("\%5B\%5B"+attribute.toUpperCase()+"\%5D\%5D", 'g'), result[attribute]);
        }
    }

    record.image = '<img src="' + record.image_url + '" alt="' + record.title +'" title="' + record.title + '" />';
    
    for(attribute in record) {
        if(typeof attribute == 'string') {
            model = model.replace(new RegExp("\\[\\["+attribute.toUpperCase()+"\\]\\]", 'g'), record[attribute]);
            model = model.replace(new RegExp("\%5B\%5B"+attribute.toUpperCase()+"\%5D\%5D", 'g'), record[attribute]);           
        }
    }
    
    divResult.innerHTML += model;
}

