<!--
function setCurrentDate() {
var currentDate = new Date();
// skip if this has been called on a page with no form
if (typeof(document.dateForm) != "undefined")	
{if (typeof(document.dateForm.inyear) != "undefined")
{
document.dateForm.inyear.selectedIndex = 0;
document.dateForm.inMonth.selectedIndex = currentDate.getMonth();
setDays();
document.dateForm.inDay.selectedIndex = currentDate.getDate();}
}
}
function setDays() {
var y = document.dateForm.inyear.options[document.dateForm.inyear.selectedIndex].value;
var m = document.dateForm.inMonth.selectedIndex;
var d;
if ( (m == 3) || (m == 5) || (m == 8) || (m == 10) ) {
days = 30;}
else if (m == 1) {
if ( (Math.floor(y/4) == (y/4)) && ((Math.floor(y/100) != (y/100)) || (Math.floor(y/400) == (y/400))) )
days = 29
else
days = 28}
else {
days = 31;}
if (days > document.dateForm.inDay.length) {
for (i = document.dateForm.inDay.length; i < days; i++) {
document.dateForm.inDay.length = days;
document.dateForm.inDay.options[i].text = i + 1;
document.dateForm.inDay.options[i].value = i + 1;}}
if (days < document.dateForm.inDay.length) {
document.dateForm.inDay.length = days;
if (document.dateForm.inDay.selectedIndex == -1) 
document.dateForm.inDay.selectedIndex = days - 1;}}


var newwindow = '';

function popitup(url)
{
	if (!newwindow.closed && newwindow.location)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'zoompic','toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=1,width=270,height=220,left = 50,top = 50');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
}


	
	
//-->
