function swappicture(picname,newpic){
	document[picname].src = newpic;
}

function usetoday(){

	todayyr = new Date().getFullYear();

	if ((new Date().getMonth() + 1) <= 9) todaymo = "0"+(new Date().getMonth() + 1);
	else todaymo = (new Date().getMonth()) + 1;

	if (new Date().getDate() <= 9) todayday = "0"+new Date().getDate();
	else todayday = new Date().getDate();

	datestring = todayyr+"-"+todaymo+"-"+todayday;

	document.addform.date.value = datestring;

}

function confirmbox(message, url){
	if(confirm(message)) location.href = url;
}

function textboxfocus(formElement){
	formElement.focus();
}

