var today	= new Date();
var nxday	= new Date();
nxday.setDate(nxday.getDate() + 1);
var tmpchild;
var tmpstr;

function insertYear () {
	if (document.forms[0].year) {
		for (var i = (today.getFullYear()); i <= (today.getFullYear() + 1); i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == (nxday.getMonth() + 1)) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("year").appendChild(tmpchild);
		}
	}
}
function insertMonth () {
	if (document.forms[0].month) {
		for (var i = 1; i <= 12; i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == (nxday.getMonth() + 1)) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("month").appendChild(tmpchild);
		}
	}
}
function insertDays () {
	if (document.forms[0].days) {
		for (var i = 1; i <= 31; i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == nxday.getDate()) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("days").appendChild(tmpchild);
		}
	}
}
/*function insertYear () {
	if (document.forms[0].year) {
		for (var i = (today.getFullYear()); i <= (today.getFullYear()+1); i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == (today.getMonth() + 1)) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("year").appendChild(tmpchild);
		}
	}
}*/
/*function insertMonth () {
	if (document.forms[0].month) {
		for (var i = 1; i <= 12; i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == (today.getMonth() + 1)) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("month").appendChild(tmpchild);
		}
	}
}*/
/*function insertDays () {
	if (document.forms[0].days) {
		for (var i = 1; i <= 31; i++) {
			tmpchild	= "";
			tmpstr		= "";
			tmpchild	= document.createElement("option");
			tmpchild.setAttribute("value", i);
			if (i == today.getDate()) {
				tmpchild.setAttribute("selected", "selected");
			}
			tmpstr		= document.createTextNode(i);
			tmpchild.appendChild(tmpstr);
			document.getElementById("days").appendChild(tmpchild);
		}
	}
}*/

function chInqImg () {
	if (document.getElementById("ftr_logo")) {
		document.getElementById("ftr_logo").src	= "imgs2/flogo.gif";
	}
	if (document.getElementById("ftr_inquiry")) {
		document.getElementById("ftr_inquiry").src	= "imgs2/inquiry.gif";
	}
}