// JavaScript Document

function changeTheDateFields (mydatevalue) {
	myd = mydatevalue.substring(0,2)
	mym = mydatevalue.substring(3,5)
	myy = mydatevalue.substring(6,10)
	
	mydtransmit = ''+parseFloat(myd);
	mymtransmit = ''+parseFloat(mym);
	
	// Set the day:
	document.getElementById('dayEB').value=mydtransmit;
	  
	// Set the month:
	document.getElementById('monthEB').value=mymtransmit;
	  
	// Set the year:
	document.getElementById('yearEB').value=myy;
}

function myYear() {
	now = new Date
	theYear=now.getYear()
	if (theYear < 1900)
	theYear=theYear+1900
	return (theYear);
}

function getCurrentDay() {
	now = new Date
	theDay=now.getDate();
	return (theDay);
}
function getCurrentMonth() {
	now = new Date
	theMonth=now.getMonth();
	return (theMonth+1);
}

function popupform(myform, windowname) {
	if (! window.focus)return true;
	window.open('', windowname, 'height=550,width=760,scrollbars=no');
	myform.target=windowname;
	return true;
}