How to pop up a jsp page from a grp of radio buttons?
*******URGENT HELP REQUIRED*********
THIS IS NOT A YADA YADA POST......
Here is my code. I want to pop up a jsp page if user clicks on one radio button.
<html> <title>Radio Button Validation</title> <body bgcolor="#FFFFFF"> <script language="JavaScript"> <!-- function radio_button_checker(){// set var radio_choice to false var radio_choice = false; // Loop from zero to the one minus the number of radio button selections for (counter = 0; counter < document.radio_form.radio_button.length; counter++) { // If a radio button has been selected it will return true // (If not it will return false) if (radio_form.radio_button[counter].checked) { if(radio_form.radio_button[counter].value == 'Company') { javascript:openWindow('addContactForOther.do','documents',500,300) } else if(radio_form.radio_button[counter].value == 'SA') { openWindow('addContactForOther.do','documents',500,300) } else { document.radio_form.action="other.html"; } radio_choice = true; break; } } if (!radio_choice) { // If there were no selections made display an alert box alert("Please select a Role.") return (false); } else { document.radio_form.submit(); } return (true); } --> </script> <form method="get" action="" name="radio_form"> <table width="200" border="0"> <tr> <td><input type="radio" value="Company" name="radio_button"> Company Employee </td> </tr> <tr> <td>
<input type="radio" value="SA" name="radio_button"> SA Rep </td> </tr> <tr> <td>
<input type="radio" value="Other" name="radio_button"> Other </td> </tr> <tr> <td>
<input type="button" value="Submit" onClick="return radio_button_checker()"> <input type="reset" name="reset" value="Cancel"></td> </tr> </table> </form> </body> </html>
PLZ HELP ME WITH THIS

