<!-- SPLIT THIS script OUT WHEN DONE! -->
function startupScript() {
	// CLEAR BACKGROUNDS ON RADIO BUTTONS AND CHECKBOXES
	// Loop through all inputs
	var inputs = document.getElementsByTagName('input');
	for(i = 0; i < inputs.length; i++){
		// If checkbox or radio set background transparent
		if(inputs[i].getAttribute('type') == 'checkbox' || inputs[i].getAttribute('type') == 'radio'){
			inputs[i].style.backgroundColor = 'Transparent';
			inputs[i].style.width = 'auto';
			inputs[i].style.border = 'none';
		}
	}
	for(i = 0; i < inputs.length; i++){
		// Set readonly to italics
		if(inputs[i].getAttribute('readonly','true') == true){
			inputs[i].style.fontStyle = 'italic';
		}
	}
	// SET UP FORM ELEMENT CLEARING
	// If there are no elements return
	if (!document.getElementById) return false;
	// If the value is what you expect, empty and return
	var clear = document.getElementById('dob_year');
	if (clear == null) return false;
	if (clear.value == 'YEAR') {
		clear.onfocus = function() {
			clear.value = ''; return false;
		}
	}
}

// EXECUTE STARTUP
window.onload = startupScript;
