k i need some help. im trying to help my teacher with a voting program for promking/queen for our school and we are having a problem with this java code
<script language=”javascript” type=”text/javascript”>
var count = 0;
function Checksubmit (e)
{
alert(‘you have ‘ + (3 – count) + ‘ votes left ‘);
if(e.checked == true)
{
count–;
e.checked = true;
}
else
{
count++;
e.checked = true;
}
if(count == 3)
document.form1.submit.disabled = false;
else
document.form1.submit.disabled = true;
}
</script>
any help is appreciated we need this as soon as possible
edit– sorry what we want is to take the alert out of the code. we have deleted it, commented it out and we cant think of anything else
thanx
herbd