i have the current date.below are the link by clicking i will get the date od before 1 day,before i month,before 1week...like this
<tr>
				
								<td>
									<a style="font-weight: bold;">Zoom:</a>
								</td>
								<td>&nbsp;&nbsp;&nbsp;</td>
								<td>
									<a href="javascript:void(0);" id="Custom" style="text-decoration: none;" onclick="callChart('Custom');">All</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Day" style="text-decoration: none;" onclick="callChart('Day');">1D</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Week" style="text-decoration: none;" onclick="callChart('Week');">1W</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Month" style="text-decoration: none;" onclick="callChart('Month');">1M</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Year" style="text-decoration: none;" onclick="callChart('Year');">1Y</a>
								</td>

								<td align="center""  style="width: 263px; border: 20px; ">Economiser  Operation</td>
			<td  align="right" style="width: 96px; "><html:text name="AnalyticsFormBean"  property="startdate" styleClass="DatePicker"
				alt="{yearOrder:'desc',yearRange:90}"
				tabindex="1" style="width:100px;" /></td>
				<td align="right">
		    					 <html:button  style="width:80px;" property ="Query" value="Apply"
			       					onclick="if(CompareDates()){loadApply('Normal');}" />

		    					</td>
				

		</tr>
i have the current date.below are the link by clicking i will get the date od before 1 day,before i month,before 1week...like this
===

<tr>
				
								<td>
									<a style="font-weight: bold;">Zoom:</a>
								</td>
								<td>&nbsp;&nbsp;&nbsp;</td>
								<td>
									<a href="javascript:void(0);" id="Custom" style="text-decoration: none;" onclick="callChart('Custom');">All</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Day" style="text-decoration: none;" onclick="callChart('Day');">1D</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Week" style="text-decoration: none;" onclick="callChart('Week');">1W</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Month" style="text-decoration: none;" onclick="callChart('Month');">1M</a>
								</td>
								<td> </td>
								<td>
									<a href="javascript:void(0);" id="Year" style="text-decoration: none;" onclick="callChart('Year');">1Y</a>
								</td>

								<td align="center""  style="width: 263px; border: 20px; ">Economiser  Operation</td>
			<td  align="right" style="width: 96px; "><html:text name="AnalyticsFormBean"  property="startdate" styleClass="DatePicker"
				alt="{yearOrder:'desc',yearRange:90}"
				tabindex="1" style="width:100px;" /></td>
				<td align="right">
		    					 <html:button  style="width:80px;" property ="Query" value="Apply"
			       					onclick="if(CompareDates()){loadApply('Normal');}" />

		    					</td>
				

		</tr>