// JavaScript Document
_tbl = document.getElementById("tblPrice");
for (i = 0;i < arrSeasons.length;i++) {
	cell = _tbl.rows[0].insertCell(i + 1);
	d1 = new Date();
	d1.setTime(arrSeasons[i][2]);
	d2 = new Date();
	d2.setTime(arrSeasons[i][3]);
	txt = d1.getDate() + " " + arrMonths2[d1.getMonth()] + " - " + d2.getDate() + " " + arrMonths2[d2.getMonth()];
	cell.align = "center";
	cell.style.color = "#FFFFFF";
	cell.innerHTML = arrSeasons[i][1] + "<br />" + txt;
}
for (i = 0;i < arrRoomTypes.length;i++) {
	row = _tbl.insertRow(i + 1);
	row.style.backgroundColor = "#cccccc";
	cell = row.insertCell(0);
	cell.innerHTML = arrRoomTypes[i][1];
	for (o = 0;o < arrSeasons.length;o++) {
		cell = row.insertCell(o + 1);
		cell.align = "right";
		cell.innerHTML = faceNum(arrPrices[o][i][1]);
	}
}
_idd = document.getElementById("idd");
_odd = document.getElementById("odd");
for (i = 0;i < 31;i++) {
	_idd.options[i] = new Option(i + 1,i + 1);
	_odd.options[i] = new Option(i + 1,i + 1);
}
_imm = document.getElementById("imm");
_omm = document.getElementById("omm");
for (i = 0;i < 12;i++) {
	_imm.options[i] = new Option(arrMonths[i],i + 1);
	_omm.options[i] = new Option(arrMonths[i],i + 1);
}
_iyy = document.getElementById("iyy");
_oyy = document.getElementById("oyy");
d = new Date();
dd = d.getYear();
if (dd < 2000) dd += 1900;
ddd = dd + 5;
o = 0;
for (i = dd;i <= ddd;i++) {
	_iyy.options[o] = new Option(i,i);
	_oyy.options[o] = new Option(i,i);
	o++;
}

addNewRow();
autoToday();
autoCheckOut();
