All pastes #336198 Raw Edit

Stuff

public javascript v1 · immutable
·published 2007-02-01 21:35 UTC
rendered paste body
<html><head><title>calculate tuition</title></head><body> <script language=javascript> function Calc(){ calchours=document.getElementById('hours');calcresidency=document.getElementById('residency');calctuition=130; // current tuition rateif(calcresidency.value =='Y'){	//var payment=clachours*calctuition;	// instate tuition	document.write("Your total instate tuition is ");	document.write(calchours.value*calctuition);	document.close();}else {	// out of state tuition	calcoutofstate=260;	document.write("Your out of state tuition is ");	document.write(calchours.value*calcoutofstate);	document.close();	}}</script>  How many hours: <input size="20" type="text" name="hours" id="hours"><br />Residency? <select name="residency" id="residency"><option value="Y">In-District<option value="N">Out of District</select><input type="button" value="Calculate" onclick="javascript:Calc();"></body></html>