function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = "";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = "";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = "";
}
}
function validateBirth()
{
	month = document.registration.UserBirthMonth.value;
	day = document.registration.UserBirthDay.value;
	year = document.registration.UserBirthYear.value;
	Stamp = new Date();
	if( month != "" && day != "" && year != "" )
	{
		if( Stamp.getYear() + 1900 - year < 13 )
		{
			toggleLayer('parent_email');
			toggleLayer('parent_email_field');
		}else{
			toggleOffLayer('parent_email');
			toggleOffLayer('parent_email_field');
			if( Stamp.getYear() + 1900 - year == 13 )
			{
				if( Stamp.getMonth() + 1 < month )
				{
					toggleLayer('parent_email');
					toggleLayer('parent_email_field');
				}else{
					if( Stamp.getMonth() + 1 == month && Stamp.getDate() < day )
					{
						toggleLayer('parent_email');
						toggleLayer('parent_email_field');
					}
				}
			}
		}
	}
}
function toggleOffLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = "none";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = "none";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = "none";
}
}