ciao a tutti
ho un problema

in un cilo asp ho 3 select di questo tipo


codice:
<select name="d" id="d">
			<option value=""></option>
			<% for i=1 to 31 
				if(len(i) = 1) Then
					i = 0&i
				end if
			%>
			<option value="<%=i%>" <% if cstr(d_dataforz) = cstr(i) then response.write "selected" end if %>><%=i%></option>
			<% next %>
			</select>
						            
			<select name="m" id="m">
			<option value=""></option>
			<% for i=1 to 12
				if(len(i) = 1) Then
					i = 0&i
				end if
			%>
						
			<option value="<%=i%>" <% if cstr(m_dataforz) = cstr(i) then response.write "selected" end if %>><%=i%></option>
			<% next %>
			</select>
									
			<select name="y" id="y">
			<option value=""></option>
			<% for i=2006 to year(date()) %>
			<option value="<%=i%>" <% if cstr(y_dataforz) = cstr(i) then response.write "selected" end if %>><%=i%></option>
			<% next %>
			</select>


il valore del form per identificare l' getto è un campo chiamato docentry
per impostare delle date in questi box ho pensato di mettere uno script del genere

codice:
<script type="text/javascript">
			function imposta(giorno,mese,anno) {
				
				//alert(giorno);
				//alert(mese);
				//salert(anno);
				
				document.INS<%=GENERAL("DocEntry")%>.d.value == giorno;
				document.INS<%=GENERAL("DocEntry")%>.m.value = mese;
				document.INS<%=GENERAL("DocEntry")%>.y.value = anno;
				
			}
			</script>

richiamando la funzione cosi

codice:
oggi
questo è il form

codice:
<form method="post" action="inc/ins_odln.asp" name="INS<%=GENERAL("DocEntry")%>" id="INS<%=GENERAL("DocEntry")%>" style="border-bottom:1px solid #333; padding-bottom:2px; margin-bottom:2px;">
se avete info vi ringrazio anticipatamente

buona giornata
fabio