var myrules = {
	'FORM INPUT' : function(element){
		element.onclick = function(){
			if (this.value == 'Username' || this.value == 'Password') {
				this.value = '';
			}
		},
		element.onfocus = function(){
			if (this.value == 'Username' || this.value == 'Password') {
				this.value = '';
			}
		},
		element.onblur = function(){
			if (this.value == '') {
				if (this.className == 'username') {
					this.value = 'Email Address';
				} else if (this.className == 'password') {
					this.value = 'Password';
				}
			}
		}
	}
};

Behaviour.register(myrules);
