		i=0;
		startdate=2006;
		
		function WeekStart(Month, Year, StartOfWeekDay){
	
		if (Year == 2006)	{i = 6;StartOfWeekDay = 2;}else{i = 0;}
		flag = 0;month = "";tempstartdate="";currentdate = new Date();currdate = currentdate.getDate();currmonth = currentdate.getMonth();curryear = currentdate.getYear();while (document.frm.monthdatecombo.options.length>0){deleteIndex = document.frm.monthdatecombo.options.length-1;document.frm.monthdatecombo.options[deleteIndex]=null;}
		var MonthNam = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
		var MonthMax = new Array(31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);MonthMax[1] = ((Year % 400 == 0) || ((Year % 4 == 0) && (Year % 100 !=0))) ? 29 : 28;_Date = new Date(Year, Month, 1);
		LastDate = new Date(_Date);LastDate.setMonth(_Date.getMonth() + 1);	LastDate.setHours(LastDate.getHours() - 24);Returns = new Array();if (StartOfWeekDay == null)StartOfWeekDay = 0;var I = 1;	while (I <= LastDate.getDate()){_Date.setDate(I); if (_Date.getDay() == StartOfWeekDay){Returns[Returns.length] = new Date(_Date);I += 6;break;}I++;}neededstartdate = _Date.getDate();
		
	
	for(i; i<12; i++){
	while (neededstartdate <= MonthMax[i]){
	if (Year < curryear){
	if (neededstartdate<10)
	dispdate = "0" + neededstartdate;
	else
	dispdate = neededstartdate;
	myOption= new Option();
	myOption.text = dispdate + " " + MonthNam[i];
	myOption.value= MonthNam[i] + dispdate;
	if (Year == 2006)
	{
		if (myOption.text == "02 Mar" || myOption.text == "09 Mar" || myOption.text == "16 Mar")
			{
			}
			else
			{
				document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
			}
	}
	else
	{
	document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
	}
	}
	else 
	if (Year == curryear){
	
	if (i < currmonth){
	if (neededstartdate<10)
	dispdate = "0" + neededstartdate;
	else
	dispdate = neededstartdate;
	myOption= new Option();
	
	myOption.text = dispdate + " " + MonthNam[i];
	myOption.value= MonthNam[i] + dispdate;
	if (Year == 2006)
	{
		if (myOption.text == "02 Mar" || myOption.text == "09 Mar" || myOption.text == "16 Mar")
			{
			}
			else
			{
				document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
			}
	}
	else
	{
	document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
	}
	}
	else 
	if (i == currmonth){
	if (neededstartdate <= currdate){
	if (neededstartdate < 10)dispdate = "0" + neededstartdate;
	else
	dispdate = neededstartdate;	
	myOption= new Option();
	myOption.text = dispdate + " " + MonthNam[i];
	myOption.value= MonthNam[i] + dispdate;
	if (Year == 2006)
	{
		if (myOption.text == "02 Mar" || myOption.text == "09 Mar" || myOption.text == "16 Mar")
			{
			}
			else
			{
				document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
			}
	}
	else
	{
	document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
	}
	}
	else{
	flag = 1;
	tempstartdate = neededstartdate;
	month = MonthNam[i];
	break;
	}}}
	neededstartdate = neededstartdate + 7;}
	neededstartdate = neededstartdate - MonthMax[i];}
	if (flag == 1){
	if (tempstartdate < 10)
	dispdate = "0" + tempstartdate;
	else
	dispdate = tempstartdate;
	myOption= new Option();
		//myOption.text = dispdate + " " + month;myOption.value= month + dispdate;document.frm.monthdatecombo.options[document.frm.monthdatecombo.options.length]=myOption;
		
		}   
		}
		function writeYear(){ while (document.frm.yr.options.length>0){deleteIndex = document.frm.yr.options.length-1;document.frm.yr.options[deleteIndex]=null;}
		
		currentdate = new Date();curryear = currentdate.getYear();years = curryear - startdate;Year = startdate;
		for(j=0; j<years+1; j++){myOption= new Option();myOption.text = Year;myOption.value= Year;document.frm.yr.options[document.frm.yr.options.length]=myOption;Year = Year + 1;}}
		function Golink()	{
		if (document.frm.monthdatecombo.selectedIndex!=-1)
		{
		x = document.frm.yr.value;
		a = x%1000;
		b = Math.floor(x/1000);
		res = b + "" + a + document.frm.monthdatecombo.options[document.frm.monthdatecombo.selectedIndex].value;
		window.location = "http://"+location.hostname+"/advt/yuva/" + res + "/index.htm";
		//window.location('http://www.manoramaonline.com/she/'+res+'/index.htm','Archive','width=600,height=600,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes');
		}
		}