function setFocus() {
document.frmOrder.reset;
document.frmOrder.Store.focus(); // set initial focus
vDate = new Date(); // set default date
vMonth = vDate.getMonth();
vMonth = vMonth + 1;
if (vMonth<10) vMonth = ("0" + vMonth.toString());
vDay = vDate.getDate();
if (vDay<10) vDay = ("0" + vDay.toString());
vYear = vDate.getYear();
sDate = (vMonth + "/" + vDay + "/" + vYear);
document.frmOrder.ordDate.value = sDate;
document.frmOrder.RequestType.value = "-1";
}
in order to get this to run properly i had to change the object, the onClick of which called the function from a reset to a button. so i added the document.frmOrder.reset command and it is completely ignoring it.
help
bobbie
thibault@hotbot.com
document.frmOrder.reset;
document.frmOrder.Store.focus(); // set initial focus
vDate = new Date(); // set default date
vMonth = vDate.getMonth();
vMonth = vMonth + 1;
if (vMonth<10) vMonth = ("0" + vMonth.toString());
vDay = vDate.getDate();
if (vDay<10) vDay = ("0" + vDay.toString());
vYear = vDate.getYear();
sDate = (vMonth + "/" + vDay + "/" + vYear);
document.frmOrder.ordDate.value = sDate;
document.frmOrder.RequestType.value = "-1";
}
in order to get this to run properly i had to change the object, the onClick of which called the function from a reset to a button. so i added the document.frmOrder.reset command and it is completely ignoring it.
help
bobbie
thibault@hotbot.com