window.onload = function(){
		    if (SONYMUSIC_COPPA_13.u13 == true){
		    
		    $('#actual-crowd').hide();    
		    $('.not').show();
		
		    }
		}
		
function testDate(value){
	var sel =document.getElementById('DDAY');
	sel.options.length=0;
	var today=new Date();
	var days=new Date(today.getFullYear(),value*1,-.1).getDate();
	for (var z0=0;z0<=days;z0++){
 	
 		if (z0 == 0) {
 			sel.options[z0]=new Option("DD","DD");
 		} else {
 			sel.options[z0]=new Option(z0,z0);
 		}
 	
 		if ((days == 28) && (z0 == 28)) {
 			sel.options[28]=new Option(28,28);
 			sel.options[29]=new Option(29,29);
 		}
	 }
	sel.selectedIndex=0;
}
		
function checkAge(){
	var min_age = 13;
 	var year = parseInt(document.forms["age_form"]["year"].value);
	var month = parseInt(document.forms["age_form"]["month"].value) - 1;
	var day = parseInt(document.forms["age_form"]["day"].value);
 	var theirDate = new Date((year + min_age), month, day);
	var today = new Date;
 
	if ((today.getTime() - theirDate.getTime()) < 0) {
		location.replace("http://ccc.sonymusic.com/checker/U13");
		return false;
	}
	else if (isNaN(theirDate.getTime()) == true){
		alert('Please enter your date of birth');
		return false;		
	} else {
		return true;
	}
}
