FORMOPT = {
	addLoadEvent: function(f) {
		var oo = window.onload; 
		if (typeof window.onload != 'function') { 
			window.onload = f; 
		} else { 
			window.onload = function() { 
				if (oo) oo(); 
				f(); 
			} 
		} 
	},
	comment: {
		d: {},
		init: function() {

			var els = [
				{ID: 'author', defaultID: 'author'},
				{ID: 'email', defaultID: 'email'},
				{ID: 'url', defaultID: 'url'},
				{ID: 'comment', defaultID: 'comment'}
			];
			for (var i=0; i<els.length; i++) {
				var e = document.getElementById(els[i].ID);
				if (e != null) {
					var dv = document.getElementById(els[i].defaultID).value;
					e._dv = dv;
					e.onfocus = function() {
						if (this.value == this._dv) {
							this.value = '';
							this.className = this.className.replace(this.className.match(' inputIA')?' inputIA':'inputIA', '');
						}
					};
					e.onblur = function() {
						if (this.value == '') {
							this.value = this._dv;
							this.className += this.className==''?"inputIA":" inputIA";
						}
					}
				}
			}
			
			
		}
		
	}
};


FORMOPT.addLoadEvent(FORMOPT.comment.init);
