01.
<script>
02.
function
hiddenn(pvar) {
03.
if
(pvar==0){
04.
document.getElementById(
"txt1"
).style.display =
'none'
;
05.
document.getElementById(
"txt2"
).style.display =
'none'
;
06.
}
else
{
07.
document.getElementById(
"txt1"
).style.display =
''
;
08.
document.getElementById(
"txt2"
).style.display =
''
;
09.
}
10.
11.
}
12.
</script>
13.
<body onload=
"hiddenn('0')"
>
14.
EMS
15.
<form>
16.
<input type=
"radio"
name=
"type"
value=
"sendme"
onclick=
"hiddenn('0')"
/> 1<br />
17.
<input type=
"radio"
name=
"type"
value=
"other"
onclick=
"hiddenn('0')"
/> 2<br />
18.
<input type=
"radio"
name=
"type"
value=
"sendme"
onclick=
"hiddenn('1')"
/> 3<br />
19.
<input type=
"radio"
name=
"type"
value=
"other"
onclick=
"hiddenn('2')"
/> 4
20.
<input type=
"text"
name=
"txt1"
id=
"txt1"
/>
21.
<input type=
"text"
name=
"txt1"
id=
"txt2"
/>