sBody = document.getElementById("Year").value + ' г.в., '; if(document.getElementById("Color").value != ''){ sBody += 'Цвет —' + document.getElementById("Color").value + ', ' } document.getElementById("Body").value = sBody;