var errorcolor="#df8ca3"; //this is the error hightlight color of fields
var normalcolor="#ffffff";  // this is the normal background of fields

//This function is for the cooppa --
function validateTwoform() {  
   	var alertMessage = "Please enter  \n";
	var isAlert = false;
	
	if(!validateNotEmpty (document.contest_mobile.birthMonth.value)){
   		alertMessage += "Birth date: Month \n";
   		document.contest_mobile.birthMonth.style.background=errorcolor;
   		isAlert = true;	
   	}
   	if(!validateNotEmpty (document.contest_mobile.birthDay.value)){
   		alertMessage += "Birth date: Day \n";
   		document.contest_mobile.birthDay.style.background=errorcolor;
   		isAlert = true;	
   	}
   	if(!validateNotEmpty (document.contest_mobile.birthYear.value)){
   		alertMessage += "Birth date: Year \n";
   		document.contest_mobile.birthYear.style.background=errorcolor;
   		isAlert = true;	
   	}
	
	if(!validateEmail(document.contest_mobile.email.value)){
    	alertMessage += "Email \n";
    	document.contest_mobile.email.style.background=errorcolor;
    	isAlert = true;	
    }

    if(isAlert)
    {
        alert(alertMessage);
    }
	
	else {
	var dob = document.contest_mobile.birthMonth.value+ "/" + document.contest_mobile.birthDay.value +"/"+ document.contest_mobile.birthYear.value;
    	document.contest_mobile.dob.value=dob;
		IsUnderage(document.contest_mobile)
	}	

}