function display() {

indday=document.DateChoice.elements[0].selectedIndex;
day=document.DateChoice.DAY.options[indday].value;
indmth=document.DateChoice.MONTH.selectedIndex;
mth=document.DateChoice.MONTH.options[indmth].value;
//window.alert('dayindex = '+indday+'\n'+'day = '+day+'\n'+'mthindex = '+indmth+'\n'+'mth = '+mth);
if (day == "This Day") {
   today=new Date();
   day=today.getDate();
   if (day<10) day="0"+day;
	}
if (mth == "This Month") {
   today=new Date();
   mth=today.getMonth();
   mth++;
   if (mth<10) mth="0"+mth;
   }
//window.alert('today = '+day+'\n');
//window.alert('mth = '+mth+'\n');
   

if (day > 30) {
   if (mth== 9 || mth==4 || mth ==6 || mth==11) {
    window.alert("Invalid Date");
   document.DateChoice.DAY.focus();
   return;
   }
   }
if (day > 28) {
   if (mth== 2) {
    window.alert("Invalid Date");
   document.DateChoice.DAY.focus();
   return;
   }
   }
//if (day > 10 || mth > 1) {
  // window.alert("This date not done yet");
   //document.DateChoice.DAY.focus();
   //return;
   //} 
pageName="./html/day"+mth+day+".html";

//window.alert('file = '+pageName+'\n');


window.location.href=pageName;
}
function showtoday() {

//window.alert('dayindex = '+indday+'\n'+'day = '+day+'\n'+'mthindex = '+indmth+'\n'+'mth = '+mth);

   today=new Date();
   day=today.getDate();
   if (day<10) day="0"+day;
	

   today=new Date();
   mth=today.getMonth();
   mth++;
   if (mth<10) mth="0"+mth;
 
//window.alert('today = '+day+'\n');
//window.alert('mth = '+mth+'\n');
   

if (day > 30) {
   if (mth== 9 || mth==4 || mth ==6 || mth==11) {
    window.alert("Invalid Date");
   document.DateChoice.DAY.focus();
   return;
   }
   }
if (day > 28) {
   if (mth== 2) {
    window.alert("Invalid Date");
   document.DateChoice.DAY.focus();
   return;
   }
   }
//if (day > 10 || mth > 1) {
  // window.alert("This date not done yet");
   //document.DateChoice.DAY.focus();
   //return;
   //} 
pageName="./html/day"+mth+day+".html";

//window.alert('file = '+pageName+'\n');


window.location.href=pageName;
}