function toggle_layer(whichLayer, state) {
	//alert('here');
	if (state == 'on') {
		state = '';
	} else {
		state = 'none';
	}
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
	}
	else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
	}
	else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
	}
	style2.display = state;
}

function auto_toggle_layer(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
	}
	else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
	}
	else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
	}
	//alert(style2.display);
	if (style2.display == 'none') {
		state = 'on';
	} else {
		state = 'off';
	}
	//alert(state);
	toggle_layer(whichLayer, state);
}

function age_requirement_popup() {
	the_form = document.create_account;
	if (the_form.age_confirmation.checked) {
		return true;
	} else {
		alert('This website is not intended for individuals under the age of 13. We do not knowingly collect information from anyone under the age of 13.');
		fuh = document.getElementById('age-requirement');
		//fuh.style.backgroundColor = '#D5771E';
		fuh.className = 'error';
		return false;
	}
}