The attached locks a text field if the date chosen is "08-17-2010". If it is not the text field is accessible.
// form1.page1.date::exit - (JavaScript, client)
if (this.rawValue == "2010-08-17") {
form1.page1.tf.access = "protected";
}
else {
form1.page1.tf.access = "";
}
Steve