function getDobInfo()
{
  var dd = "";
  for(i=1; i<=31;++i)
  {
    if(i<10) j='0'+i;
    else j=i;
    dd += '<option value="'+i+'">'+j+'</option>';
  }
  dd = '<select name="birthDay" id="birthDay"><option value=""> </option>' + dd + '</select>';

  var yy = "";
  for(i=2005; i>=1929;--i)
  {
    yy += '<option value="'+i+'">'+i+'</option>';
  }
  yy = '<select name="birthYear" id="birthYear"><option value=""> </option>' + yy + '</select>';


  var html ='<table class=boxTable border=0 style="border-collapse: collapse; border:0px solid green;" cellpadding=0 cellspacing=0 id=posOptions width=100% height=160 valign=middle>\
    <tr> \
      <td class=innerTd valign=bottom align=center >Please enter your birth details: &nbsp;</td>\
      </tr><tr><td class=innerTd valign=middle align=center>\
         <select name="birthMonth" id="birthMonth">\
          <option value=""> </option><option value="1">Jan</option>\
          <option value="2">Feb</option><option value="3">Mar</option>\
          <option value="4">Apr</option><option value="5">May</option>\
          <option value="6">Jun</option><option value="7">Jul</option>\
          <option value="8">Aug</option><option value="9">Sep</option>\
          <option value="10">Oct</option><option value="11">Nov</option>\
          <option value="12">Dec</option>\
        </select> &nbsp;' + dd + '&nbsp;' + yy +
      '</td>\
    </tr>\
    <tr>\
      <td class=innerTd1 valign=top align=center >\
        <input type=button name=Submit onclick="processDoB();return false;" value="   Submit   "></td></tr>\
  </table>';



  var ct = document.getElementById('themeContainerDiv');
  if(ct == undefined)
  {
    html = '<div class=themeContainer id=themeContainerDiv>'+html+'</div>';
    createFormDiv('header', html, 750, 0, 15, 148);
  }
  else
  {
    ct.innerHTML = html;
  }

  document.getElementById('birthMonth').focus();
  //ct.style.background = 'lightyellow';
  //ct.innerHTML = "<iframe frameborder=0 id=myThemeIframe style='width:100%;border:none; height:580px; background:lightyellow; text-align:center;' src='/my/userupload' align=center>";
}

function processDoB()
{
  sel = document.getElementById('birthMonth');
  var mm = sel.options[sel.selectedIndex].value;
  if(mm<1 || mm>12)
  {
    alert('Please select month value');
    return;
  }

  var sel = document.getElementById('birthDay');
  var dd = sel.options[sel.selectedIndex].value;
  if(dd<1 || dd>31)
  {
    alert('Please select day value');
    return;
  }

  sel = document.getElementById('birthYear');
  var yy = sel.options[sel.selectedIndex].value;
  if(yy<1929 || yy>2010)
  {
    alert('Please select year value');
    return;
  }

  if((mm==12 && dd>=22) || (mm==1 && dd<=19))
  {
    sSign = 'capricorn';
  }

  else if((mm==1 && dd>=20) || (mm==2 && dd<=18))
  {
    sSign = 'aquarius';
  }

  else if((mm==2 && dd>=19) || (mm==3 && dd<=20))
  {
    sSign = 'pisces';
  }

  else if((mm==3 && dd>=21) || (mm==4 && dd<=19))
  {
    sSign = 'aries';
  }

  else if((mm==4 && dd>=20) || (mm==5 && dd<=20))
  {
    sSign = 'taurus';
  }

  else if((mm==5 && dd>=21) || (mm==6 && dd<=21))
  {
    sSign = 'gemini';
  }

  else if((mm==6 && dd>=22) || (mm==7 && dd<=22))
  {
    sSign = 'cancer';
  }

  else if((mm==7 && dd>=23) || (mm==8 && dd<=22))
  {
    sSign = 'leo';
  }

  else if((mm==8 && dd>=23) || (mm==9 && dd<=22))
  {
    sSign = 'virgo';
  }

  else if((mm==9 && dd>=23) || (mm==10 && dd<=22))
  {
    sSign = 'libra';
  }

  else if((mm==10 && dd>=23) || (mm==11 && dd<=21))
  {
    sSign = 'scorpio';
  }

  else if((mm==11 && dd>=22) || (mm==12 && dd<=21))
  {
    sSign = 'sagittarius';
  }
  else
  {
    alert ("Please refresh the page and try again");
    return;
  }

  dtheme = 'horo_'+sSign;

  window.top.location = '/?askInvite=1&theme='+encodeURIComponent(dtheme);
}
