ライブラリを読み込む
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<link rel="stylesheet" href="css/datepicker.css" type="text/css" media="all">
<link rel="stylesheet" href="css/main.css" type="text/css" media="all">
<script type="text/javascript" src="js/prototype.js" charset="shift_jis"></script>
<script type="text/javascript" src="js/effects.js" charset="shift_jis"></script>
<script type="text/javascript" src="js/datepicker.js" charset="shift_jis"></script>
<script type="text/javascript"><!--
Event.observe(window, "load", function(){
new DatePicker({relative : "startDate", language : "ja"});
new DatePicker({relative : "endDate", disableFutureDate : false });
}, false);
// --></script>
</head>
<body>
<h1>ライブラリを読み込む</h1>
<form name="xForm" id="xForm" method="get" action="./travel.cgi">
期間:<input type="text" id="startDate" name="startDate">〜
<input type="text" id="endDate" name="endDate">
</form>
</body>
</html>
説明などは本書を参考にしてください。