<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
// Prepare year field 10 years ago up to current year
var years = '<option selected="selected"></option>';
var thisYear = new Date();
thisYear = thisYear.getYear();
if (thisYear < 1900) thisYear += 1900;
thisYear = parseInt(thisYear);
for(i=0; i<=10; i++) {
currYear = thisYear - i;
years += '<option value="'+currYear+'">'+currYear+'</option>';
}
$('select[name=MyReport_Year]').html(years);
});
//]]>
</script>
</head>
<body>
<select name="MyReport_Year"></select>
</body>
</html>
|