add: if (key == 'extend') continue; 
context: document.validate = function (form, val_hash) { // undo previous inline if (document.did_inline) {   for (var key in document.did_inline) {     var el = document.getElementById(key);     if (el) el.innerHTML = '';   }   document.did_inline = undefined; } // do the validate val_hash = document.load_val_hash(form, val_hash); if (typeof(val_hash) == 'undefined') return true; if (! document.val_obj) document.val_obj = new Validate(); var err_obj = document.val_obj.validate(form, val_hash); // return success if (! err_obj) return true; // focus var field = err_obj.first_field(); if (field && form[field] && form[field].focus) form[field].focus(); // inline if (! err_obj.extra.no_inline) {   var d = document.did_inline = new Array();   var hash = err_obj.as_hash();   for (var key in hash) {     var el = document.getElementById(key);     if (el) el.innerHTML = hash[key];     d[key] = 1;   } } // alert if (! err_obj.extra.no_confirm) {   return confirm(err_obj.as_string()) ? false : true; } else if (! err_obj.extra.no_alert) {   alert(err_obj.as_string());   return false; } else if (! err_obj.extra.no_inline) {   return false; } else {   return true; }}
meta: 5443	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5443/1a05f61f3c7ba63bdabb76519c90f0a9e8e91f69/validate.js/buggy/lib/CGI/Ex/validate.js