
function validate() {
	var els = document.getElementsByName("botbot");
	var u = els.length;
	for (var i=0; i<u; i++ ) {
		els[i].value = 'i' + "am";
		els[i].value = els[i].value + 'spam';
	}
}


//  ============================================================================
//  ============================================================================
//	GENERIC FUNCTIONS



//	Safe window onload event listener
//	Use this function to add window onload events without clobbering existing onload events.
function addLoadListener(fn) {
	if (typeof window.addEventListener != 'undefined') {
		window.addEventListener('load', fn, false);
	}
	else if (typeof document.addEventListener != 'undefined') {
		document.addEventListener('load', fn, false);
	}
	else if (typeof window.attachEvent != 'undefined') {
		window.attachEvent('onload', fn);
	}
	else {
		var oldfn = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = fn;
		} else {
			window.onload = function() {
				oldfn();
				fn();
			};
		}
	}
}







//  ============================================================================
//  ============================================================================
//	INIT


addLoadListener( validate );
