text: var maleName=['Kwasi','Kwadwo','Kwabena','Kwaku','Yaw','Kofi','Kwame']
  var femaleName=['Akosua','Adwoa', 'Abenaa','Akua','Yaa','Afua','Ama']
  
  
  function birthDate(){
      var dayWeek=document.getElementById("dayWeek").value;
        var dd=parseInt(dayWeek);
      var month=document.getElementById("month").value;
        var mm=parseInt(month);
      var year=document.getElementById("year").value;
        var yy=parseInt(year.substr(2,4));
        var cc=parseInt(year.substr(0,2));
      var day=parseInt(((cc/4) -2*cc-1) + ((5*yy/4) ) + ((26*(mm+1)/10))+ dd)%7;
      var gender=document.getElementById("gender").value
      //Validating the form
      if (dd<=0||dd>31||dd ==""){
          alert('Enter a valid date');
      }
      else if(mm<1 ||mm>12 ||mm==2 && dd>29 ||mm==""){
          alert( 'Enter a valid month');
      }
      else if (year<=0 ||year==""){
          alert('Enter a valid year')
      }
      if(gender==="male"){
          alert('Hey!Your Akan name is '+ maleName[day]);
      }
      else if( gender==='female'){
          alert('Hey!Your Akan name is '+ femaleName[day]);
      }
  
      
  }
  