/* typical javascript generation of animal HTML */ var imgSize = 80; function animal_html(genus,species,endangered,id) { return '
\r\n' + '

\r\n' + ' The ' + species + ' is a ' + genus + ' and looks like this:\r\n' + ' \r\n' + '

\r\n' + '
'; }