<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<title></title>
<script language="JavaScript" type="text/javascript">
function addop()
{ form1 = document.getElementById('input');
var add = document.getElementById('add');
newelem = document.createElement('input');
newelem.type = 'text';
newelem.name = 'v[]';
form1.insertBefore(newelem, add);
newelem = document.createElement('br');
form1.insertBefore(newelem, add);
}
</script>
</head>
<body>
<form action="?action=check&u=addop" method="post" id="input" name="input">
Текст опроса<br />
<input type="text" name="opros" /><br />
Сколько дней идёт опрос<br />
<input type="text" name="time_isset" /><br />
Варианты ответа<br />
<input type="text" name="v[]" /><br />
<input type="text" name="v[]" /><br />
<a href="#" id="add" onclick="addop()" class="buttom" name="add">Добавить вариант</a> |
<input type="submit" value="Создать опрос" /><br />
</form>
</body>
</html>