function ageVerification(divId, minAge)
{
    this.today = new Date;

    this.checkAge = function()
    {
        var year = parseInt(document.forms["age_form"]["age_year"].value);
        var month = parseInt(document.forms["age_form"]["age_month"].value);
        var day = parseInt(document.forms["age_form"]["age_day"].value);

        var age = Math.floor((this.today.getTime() - new Date(year, month, day).getTime())/(365.25*24*60*60*1000));

        document.cookie = "m4_age="+age+";path=/";
        window.location.reload();
    }
}
