function startValidation(selector)
{
	var myRules = {
		'form.theForm tr.required td.inp input' : function(element){
			element.onblur = function(){
				validation = myValidation[this.id];
				if (validation == null) validation = myValidation['default'];

				if (this.value.match(validation[0])) {	// field OK
					last = this.nextSibling;
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last != null && last.className=='err')
					{
						this.parentNode.removeChild(last);
					}
				} else {										// field bad
					last = this.nextSibling;
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last != null && (last.nodeType != 1 || last.nodeName !='DIV')) last=last.nextSibling; // whitespace fix
					if (last == null || last.className!='err')
					{
						var x = document.createElement('div');
						x.className='err';
						x.innerHTML=validation[1];
						this.parentNode.appendChild(x) ;
					}
				}
			}
		}
	};
	
	Behaviour.register(myRules);
}