<html>

<title> Assignment 5</title>
<h2><head>Convert from Decimal to Binary or Hexadecimal.</head></h2>
<body>

<form name="deci">
<fieldset><legend>Conversions</legend>
<label><b>Decimal Number: </b></label><input type="text" name="dvnd"><br/>

<select name="bse">
<option value="2">binary</option>
<option value="16">hexadecimal</option>
</select></br>
<input type="submit" value="Convert" onClick="process(dvnd,bse)"/>

</body>
</fieldset>

<script>

function process(dvnd,bse){

var bse = bse.value;
remai = 0;
quotient = 0;


while (dvnd >= 0) {
dvnd = dvnd/bse;
remai = dvnd%bse;
alert("working");
}


}




</script>
</html>


My alert and while statement aren't working..


I use notepad++, and here is a link to the assignment requirements (mostly if you need to look at it)

http://faculty.tamu-commerce.edu/tom...ion05sp13.html

I'm a beginner in this, and only know the basic's (I'm taking a beginner class).