<!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=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function open_window(target, source) {
window.open('page2.htm','','width=600,height=200,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
}
function showFields(){
if (isNaN(document.getElementById("Page1_TxtA").value)){
for(var i=0; i < document.Form1.R.length; i++){
document.Form1.R[i].disabled=true;
document.Form1.R[i].checked=false;}
document.getElementById("Date_A").style.visibility = 'visible';
}
else
{
for(var i=0; i < document.Form1.R.length; i++){
document.Form1.R[i].disabled=false;}
document.getElementById("Date_A").style.visibility = 'visible';
if (document.getElementById("Page1_TxtA").value==''){
for(var i=0; i < document.Form1.R.length; i++){
document.Form1.R[i].disabled=true;
document.Form1.R[i].checked=false;}
document.getElementById("Date_A").style.visibility = 'hidden';
document.getElementById("DateA").value = '';
}
/*ends here*/
}
}
</script>
</head>
<body>
<H1>PAGE1</H1>
<form name="Form1">
<table width="777" align="center">
<tr>
<td colspan="2" bgcolor="#E9E9E9">TextBox A.
<input type="text" name="Page1_TxtA" id="Page1_TxtA" value="" size="20" maxlength="40" onChange="showFields()" readonly="readonly"></td>
<td width="184" nowrap="nowrap">
<input type="radio" name="R" id="R0" value="00" tabindex="550" disabled="disabled"/>
0
<input type="radio" name="R" id="R1" value="01" tabindex="560" disabled="disabled"/>
1
<input type="radio" name="R" id="R2" value="02" tabindex="570" disabled="disabled"/>
2
</td>
<td width="187" align="center" nowrap="nowrap" bgcolor="#E9E9E9" id="Date_A" style="visibility:hidden">Date:
<input type="text" name="DateA" id="DateA" size="15" maxlength="10" /></td>
<td width="135" align="center" nowrap="nowrap" ><input type="button" name="Page1_BtnA" value="Button A" onclick="open_window('Page1_TxtA','Page2_Txt1')"/></td>
</tr>
</table>
</form>
</body>
</html>
|