﻿
 function initIanDate() {

   var now = new Date();

   var mth = now.getMonth();

   var dd = now.getDate();

   if (mth < 10)

    {

      mth == 0 + mth;

     }

   if (dd < 10)

    {

      dd == 0 + dd;

    }

     if ((mth==11) && (dd>=29)) {

		 document.myForm.arrivalMonth.selectedIndex = mth;

		 document.myForm.arrivalDay.selectedIndex = dd - 1;

     }

     else if ((dd>=29 ) || ((dd>=27 ) && (mth==1)))

     {

	 document.myForm.arrivalMonth.selectedIndex = mth+1;

     document.myForm.arrivalDay.selectedIndex = dd-dd;

    }

   else

    {

   	document.myForm.arrivalMonth.selectedIndex=mth;

   	document.myForm.arrivalDay.selectedIndex=dd+1;

   }

}

