<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<div style="padding:10px">
	<div style="height:30px">删除:  
		<select id="slc_month">
			<option value="1">一个月以前</option>
			<option value="3">三个月以前</option>
			<option value="6">半年以前</option>
			<option value="12">一年以前</option>
		</select>
		<button onclick="delete1()">确定</button>
	</div>
	<div style="height:30px">
		删除: 从<input readonly="readonly" class="input_date" id="begin_date"> 到 <input readonly="readonly" class="input_date" id="end_date"> <button onclick="delete2()">确定</button>
	<div>
</div>
<script>
function customRange(input){
	return {
		minDate : (input.id == "end_date" ? $("#begin_date").datepicker("getDate") : null),
		maxDate : (input.id == "begin_date" ? $("#end_date").datepicker("getDate") : null)
	}
}
$("#begin_date, #end_date").datepicker({
	beforeShow : customRange, buttonImageOnly : false
});
</script>