<script language="Javascript1.2">
function showOptions(){
var radioLength = document.populateTable.rdo_choice.length;
var checkedOption = '';
for(var i = 0; i < radioLength; i++) {
if(document.populateTable.rdo_choice[i].checked) {
checkedOption = document.populateTable.rdo_choice[i].value;
}
}
if (checkedOption == "sales")
document.getElementById('sales_div').style.display='block';
else if (checkedOption == "clients")
document.getElementById('clients_div').style.display='block';
else
document.getElementById('sales_div').style.display='none';
document.getElementById('clients_div').style.display='none';
}
</script>
<input type="radio" name="rdo_choice" value="None" style="border: none;" onClick="return showOptions()"> None |
<input type="radio" name="rdo_choice" value="clients" style="border: none;" onClick="return showOptions()"> Report Details By Client |
<input type="radio" name="rdo_choice" value="sales" style="border: none;" onClick="return showOptions()"> Report Details Salesperson |
<div id="clients_div" style="display:none">
Data Here...
</div>
<div id="sales_div" style="display:none">
Data here...
</div>
|