function initDefaultTexts(formid, defaultValues, onColor, offColor) {
	var onColor = onColor;
	var offColor = offColor;

	if(!onColor) var onColor = '#000'; 
	if(!offColor) var offColor = '#777'
	defaultValues.each(function(pair) {
		var el = $(pair.key);
		if (el.value=='') {
			el.value = pair.value;
			el.setStyle({'color':offColor});
			if(el.type=='password') {
				//do something else in ie...
				if (document.all&&document.getElementById) {
					// var label = document.createElement('small');
					// label.style.display = 'block';
					// label.innerHTML = pair.value;
					// el.parentNode.insertBefore(label);
				} else {
					el.type = 'text';
					el.addClassName('was-password');
				}
			}
		}
		Event.observe($(el), 'focus', function(e) {
			if ($(el).value==defaultValues.get($(el).id)) {
				el.setStyle({'color':onColor});
				$(el).value = '';
				if(el.hasClassName('was-password')) {
					if (document.all&&document.getElementById) {
						//don't do anything else if we're ie...
					} else {
						el.type = 'password';
						el.removeClassName('was-password');
					}
				}
			}
		});
		Event.observe($(el), 'blur', function(e) {
			if ($(el).value=='') { 
				el.setStyle({'color':offColor});
				$(el).value = defaultValues.get($(el).id);
				if(el.type=='password') {
					if (document.all&&document.getElementById) {
						//don't do anything else if we're ie...	
					} else {
						el.type = 'text';
						el.addClassName('was-password');
					}
				}
			}
		});
	});
	Event.observe($(formid), 'submit', function(e){
		defaultValues.each(function(pair) {
			var el = $(pair.key);
			if ($(el).value==pair.value) $(el).value = '';
		});
	});
}