Buon giorno. Ho trovato uno script che mi servirebbe ma ho dei problemi

testo.php
Codice PHP:
<?php
$testo 
‘Il testo che rappresenta la chiamata AJAX’;
?>
div = document.getElementById(’contentdiv’);
div.innerHTML = ‘<?php echo $testo?>’;

Codice PHP:
<html>
<
head>
<
title>Demo AJAX senza XMLHTTPREQUEST</title>
<
script type=”text/javascript”>

// Ottieni la base url
url document.location.href;
xend url.lastIndexOf(/) + 1;
var 
base_url url.substring(0xend);

function 
chiama_ajax(url) {
//Inizia l’url con http?
if (url.substring(04) != ‘http’) {
url base_url url;
}
// Crea un nuovo elemento JS
var jsel document.createElement(’SCRIPT’);
jsel.type ‘text/javascript’;
jsel.src url;
//Appende l’elemento JS e quindi esegue la ‘chiamata AJAX’
document.body.appendChild (jsel);
}

</script> </head> <body>
<div id=”contentdiv”> </div> <input type=”button” onclick=”chiama_ajax(’testo.php’);” value=”Interroga PHP” />
</body>
</html> 
allora passando solamente del testo OK tutto funziona.
il mio problema e' che uso questo script per inserire del codice html che mi deve ricreare una form

quindi faccio:
Codice PHP:
<?php
$testo 
[SIZE=3]qui metto il codice html della form[/SIZE;
?>
div = document.getElementById(’contentdiv’);
div.innerHTML = ‘<?php echo $testo?>’;
passando solo un <tr>Ciao</tr> funziona
se invece passo:
Codice PHP:
$testo ="<tr ><td width='160' id='primariga'><select id='modello' name='modello'>
            <option value=''>Modello</option>
               <option value='Modi'>Modi</option>
            <option value='Caneva'>Caneva</option>
            </select></td>
            <td width='160'><select name='rifinitura'>
            <option value=''>Rifinitura</option>
            <option value='Modi'>Modi</option>
            <option value='Caneva'>Caneva</option>
            </select></td>
            <td width='40'><input name='hh1' type='text' size='5' /></td>
            <td width='40'><input name='ll1' type='text' size='5' /></td>
            <td width='40'><input name='hh2' type='text' size='5' /></td>
            <td width='40'><input name='ll2' type='text' size='5' /></td></tr>"

credo sia un errore di sintassi