function addRep(){
	if (document.createElement && document.getElementById) 
	{
		var tbl  = document.getElementById('t_add_sondage');
		var row  = tbl.insertRow(-1);
		var cell = row.insertCell(0);
		
		var today = new Date();
		var rowID = today.getTime();
		
		row.id = rowID;
		
		var texte = document.createTextNode("Réponse : ");
		
		var champ = document.createElement('input');
		champ.setAttribute('type', 'text');
		champ.setAttribute('size', '30');
		champ.setAttribute('name', 'reponse[]');
		
		var lien = document.createElement("a");
		lien.href = 'javascript:;';
		lien.onclick = function() { delRep(rowID); };
		lien.appendChild(document.createTextNode('effacer')); 

		cell.appendChild(texte);
		cell.appendChild(champ);
		cell.appendChild(lien);
	}
}

function delRep(rowID)
{
        var row = document.getElementById(rowID);
        if(row) row.parentNode.removeChild(row);
} 

