{**************************************************************************}
{* *}
-{* Copyright (C) 2003-2009 Polytechnique.org *}
+{* Copyright (C) 2003-2010 Polytechnique.org *}
{* http://opensource.polytechnique.org/ *}
{* *}
{* This program is free software; you can redistribute it and/or modify *}
fid = "t" + id[name];
$("#" + name + "_" + tid).before('<div id="' + name + '_' + fid + '">'
+ '<input id="' + name + '_' + fid + '_field" type="text" name="survey_question[' + name + '][' + fid + ']" size="50" maxlength="200" value="" /> '
- + '<a href="javascript:removeField("' + name + '", "' + fid + '")"><img src="images/icons/delete.gif" alt="" title="Supprimer" /></a>'
+ + '<a href="javascript:removeField("' + name + '","' + fid + '")"><img src="images/icons/delete.gif" alt="" title="Supprimer" /></a>'
+ '</div>');
id[name]++;
$("#" + name + "_" + fid + "_field").focus();