and the form is -
<form action="" method="post" name="updateaccount" id="updateaccount" onsubmit="WAValidateRQ(document.forms[0].dmxCalendar_1,'Start Date is required',document.forms[0].dmxCalendar_1,0,false,'text');WAValidateRQ(document.forms[0].dmxCalendar_2,'End Date is required',document.forms[0].dmxCalendar_2,0,false,'text');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false,false);return document.MM_returnValue">
<fieldset>
<h3>Account Detail</h3>
<ul>
<li>
<label>Account Type <span class="redx">*</span>: </label>
<select name="accounttype" id="accounttype" onchange="WAValidateCD(document.forms[0].accounttype,document.forms[0].dmxCalendar_1,false);WAValidateEN(document.forms[0].accounttype,document.forms[0].dmxCalendar_1,false);WAValidateCD(document.forms[0].accounttype,document.forms[0].dmxCalendar_2,false);WAValidateEN(document.forms[0].accounttype,document.forms[0].dmxCalendar_2,false);WAValidateEN(document.forms[0].accounttype,document.forms[0].FreeTrial,false)">
<option value="m" <%If (Not isNull((CompanyDetail.Fields.Item("JBCLAccountType").Value))) Then If ("m" = CStr((CompanyDetail.Fields.Item("JBCLAccountType").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>>Fixed Term Contract</option>
<option value="a" <%If (Not isNull((CompanyDetail.Fields.Item("JBCLAccountType").Value))) Then If ("a" = CStr((CompanyDetail.Fields.Item("JBCLAccountType").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>>Pay as You Go</option>
</select>
</li>
<li>
<label>Start Date <span class="redx">*</span>: </label>
<input type="text" id="dmxCalendar_1" name="dmxCalendar_1" readonly="readonly" />
<script type="text/javascript">
// <![CDATA[
$(function() {$('#dmxCalendar_1').datepicker({
skin : "dmxCalendar",
dateFormat : "M d, yy",
showStatus : true,
numberOfMonths : [1,1],
showAnim : "fadeIn",
showOptions :
{
easing : "easeOutBounce",
direction : "up"
},
duration : "normal",
showOn : "both",
buttonImage : "../Styles/dmxCalendar/calendar_icon.gif",
buttonImageOnly : true,
prompt : ""
});})
// ]]>
</script>
</li><li>
<label>End Date <span class="redx">*</span>: </label>
<input type="text" id="dmxCalendar_2" name="dmxCalendar_2" readonly="readonly" />
<script type="text/javascript">
// <![CDATA[
$(function() {$('#dmxCalendar_2').datepicker({
skin : "dmxCalendar",
dateFormat : "M d, yy",
showStatus : true,
numberOfMonths : [1,1],
showAnim : "fadeIn",
showOptions :
{
easing : "easeOutBounce",
direction : "up"
},
duration : "normal",
showOn : "both",
buttonImage : "../Styles/dmxCalendar/calendar_icon.gif",
buttonImageOnly : true,
prompt : ""
});})
// ]]>
</script>
</li><li>
<label>Free Trial: </label>
<input name="FreeTrial" type="checkbox" id="FreeTrial" value="Y" />
</li>
<li>
<label></label>
<input type="submit" name="update" id="update" value="UPDATE" />
</li>
</ul>
</fieldset>
</form>