function linkon(linkid) {
	var x=document.getElementById(linkid);
	x.style.color="#CC6600";
}
function linkoff(linkid) {
	var x=document.getElementById(linkid);
	x.style.color="#9e6d37";
}
function borderon(imageid) {
	var x=document.getElementById(imageid);
	x.style.borderColor="#CC6600";
}
function borderoff(imageid) {
	var x=document.getElementById(imageid);
	x.style.borderColor="#9e6d37";
}

function turnoff(elementname) { document.getElementById(elementname).style.display = "none"; }
function turnon(elementname) { document.getElementById(elementname).style.display = "block"; }

function thisYear () {
	var time=new Date();
	var year=time.getYear();
	if (year < 2000) { year = year + 1900; }
	return( year );
}
function today () {
	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	var time=new Date();
	var lmonth=months[time.getMonth() + 1];
	var date=time.getDate();
	var year=time.getYear();
	if (year < 2000) { year = year + 1900; }
	return( lmonth + " " + date + ", " + year );
}
function openwin(url,name,width,height) {

        var dialogboxoptions = 'dependent=no,directories=no,hotkeys=no,location=no';
        dialogboxoptions +=',menubar=yes,resizable,toolbar=yes,status=yes,scrollbars=yes';
        dialogboxoptions += ',width=' + width.toString() + ',height=' + height.toString();
        dialogboxoptions += ',top=' + ((self.screen.height / 2) - (height / 2)).toString();
        dialogboxoptions += ',left=' + ((self.screen.width / 2) - (width / 2)).toString();
        var newWindow = window.open(url,name,dialogboxoptions);
        newWindow.focus();

}

