function addLink(){
	if (document.createElement && document.getElementById) 
	{
		var tbl  = document.getElementById('t_add_news');
		var row  = tbl.insertRow(-1);
		var cell = row.insertCell(0);
		
		var today = new Date();
		var rowID = today.getTime();
		
		row.id = rowID;
		
		var texteURLdata = document.createTextNode("URL (http://www...) : ");
		
		var champURLdata = document.createElement('input');
		champURLdata.setAttribute('type', 'text');
		champURLdata.setAttribute('size', '30');
		champURLdata.setAttribute('name', 'url[]');

		var texteURLname = document.createTextNode("Texte à afficher : ");
		
		var champURLname = document.createElement('input');
		champURLname.setAttribute('type', 'text');
		champURLname.setAttribute('size', '30');
		champURLname.setAttribute('name', 'texte[]');

		var lien = document.createElement("a");
		lien.href = 'javascript:;';
		lien.onclick = function() { delRep(rowID); };
		lien.appendChild(document.createTextNode('effacer')); 

		cell.appendChild(texteURLdata);
		cell.appendChild(champURLdata);
		cell.appendChild(document.createElement("br"));
		cell.appendChild(texteURLname);
		cell.appendChild(champURLname);
		cell.appendChild(lien);
	}
}

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

