CODE:
<HEAD>
<SCRIPT language=javascript>
function Display(which) {
gn=document.getElementById("gn");
sm=document.getElementById("sm");
pd=document.getElementById("pd");
av=document.getElementById("av");
pm=document.getElementById("pm");
if (which=="gn") gn.style.display="block";
else gn.style.display="none";
if (which=="sm") sm.style.display="block";
else sm.style.display="none";
if (which=="pd") pd.style.display="block";
else pd.style.display="none";
if (which=="av") av.style.display="block";
else av.style.display="none";
if (which=="pm") pm.style.display="block";
else pm.style.display="none";
}
</SCRIPT>
</HEAD><body>
<TABLE width=120> <TR> <TD> <FORM name=form1>
<INPUT onclick="Display('pm');" type=radio CHECKED value=mail name=type> Почтой
<INPUT onclick="Display('av');" type=radio value=email name=type> E-mail
<INPUT onclick="Display('gn');" type=radio value=phone
name=type> Телефон<BR>
<DIV id=gn style="DISPLAY: block"><B>Адрес:</B> <INPUT size=25
name=address><BR><B>Город:</B> <INPUT size=14 name=city> <B>страна:</B>
<INPUT size=5 name=state> <B>Индекс:</B> <INPUT size=9 name=zip> </DIV>
<DIV id=av style="DISPLAY: none"><B>E-mail:</B> <INPUT size=25
name=email> </DIV>
<DIV id=pm style="DISPLAY: none"><B>Телефон:</B> <INPUT size=15
name=phone> </DIV>
</FORM> </TD></TR></TABLE>
</body>
<HEAD>
<SCRIPT language=javascript>
function Display(which) {
gn=document.getElementById("gn");
sm=document.getElementById("sm");
pd=document.getElementById("pd");
av=document.getElementById("av");
pm=document.getElementById("pm");
if (which=="gn") gn.style.display="block";
else gn.style.display="none";
if (which=="sm") sm.style.display="block";
else sm.style.display="none";
if (which=="pd") pd.style.display="block";
else pd.style.display="none";
if (which=="av") av.style.display="block";
else av.style.display="none";
if (which=="pm") pm.style.display="block";
else pm.style.display="none";
}
</SCRIPT>
</HEAD><body>
<TABLE width=120> <TR> <TD> <FORM name=form1>
<INPUT onclick="Display('pm');" type=radio CHECKED value=mail name=type> Почтой
<INPUT onclick="Display('av');" type=radio value=email name=type> E-mail
<INPUT onclick="Display('gn');" type=radio value=phone
name=type> Телефон<BR>
<DIV id=gn style="DISPLAY: block"><B>Адрес:</B> <INPUT size=25
name=address><BR><B>Город:</B> <INPUT size=14 name=city> <B>страна:</B>
<INPUT size=5 name=state> <B>Индекс:</B> <INPUT size=9 name=zip> </DIV>
<DIV id=av style="DISPLAY: none"><B>E-mail:</B> <INPUT size=25
name=email> </DIV>
<DIV id=pm style="DISPLAY: none"><B>Телефон:</B> <INPUT size=15
name=phone> </DIV>
</FORM> </TD></TR></TABLE>
</body>
Оригинал примера прикрепляю.