I have a form that I have working here - http://www.webcrawldesigns.com/dct/order-form-new

To make a field mandatory I need to add the field in this format [text *width1]
My problem is that to make my 2 fields required and keeping the javascript working..

Code
[text* width1 class:short onchange="Calculate(1)"]
[text* length1 class:short onchange="Calculate(1)"]
<input class="short" onfocus="this.form.elements[0].focus()" name="totalcost1" id="totalcost1" />

**when they were input code they worked but I need to add * with square brackets around to set as required field prior to submission. Any ideas?
Thank you.