var myDate=new Date();

var nowDate=myDate.getDate() - 1;
var nowMonth=myDate.getMonth();
var nowYear=myDate.getFullYear();
if(nowDate<10)
{
nowDate=0 + nowDate;
}
if(nowMonth<10)
{
//alert(nowMonth);
nowMonth=0 + nowMonth;
}

function setDrops(theForm)
{
	theForm.month.selectedIndex=nowMonth;
	theForm.day.selectedIndex=nowDate;

	var found = 0;
	for(i=0;i<theForm.year.options.length;i++) {
      if (theForm.year.options[i].value == nowYear) {
         found =i;
         break;
      }
	}
	theForm.year.selectedIndex =  found;
	//alert(found);
}

//	function setCurDate()
//	{
//	setCurDate=(myDate.getMonth()+1) + "/" + myDate.getDate() + "/" + myDate.getFullYear();
//	document.FltForm.FromDate.value=setCurDate;
//	document.FltForm.ToDate.value=setCurDate;
//	}
//	
//	
//	//document.dynamicForm.year.selectedIndex =nowYear;