function extWin (url, title, w, h) {
	if ((url != "") && (title != "")) {
		if ((w == 0) && (h == 0)) {
			window.open(url, title);
		} else {
			window.open(url, title, "width=" + w + ", height=" + h + ", scrollbars=yes, resizable=yes");
		}
	}
	return false;
}

function blankWin (url) {
	if (url != "") {
		window.open(url);
	}
	return false;
}


var today	= new Date();
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 == (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);
		}
	}
}

