function writeDateModifiedCopyright (time,copyright) {
	var days = new Array;
	var months = new Array;
	days[0] = "Sunday";
	days[1] = "Monday";
	days[2] = "Tuesday";
	days[3] = "Wednesday";
	days[4] = "Thursday";
	days[5] = "Friday";
	days[6] = "Saturday";
	months[0] = "January";
	months[1] = "February";
	months[2] = "March";
	months[3] = "April";
	months[4] = "May";
	months[5] = "June";
	months[6] = "July";
	months[7] = "August";
	months[8] = "September";
	months[9] = "October";
	months[10] = "November";
	months[11] = "December";
	var modDate = new Date(Date.parse(document.lastModified));
	if (modDate != 0) {
		var day = days[modDate.getDay()];
		var ndate = modDate.getDate();
		var month = months[modDate.getMonth()];
		var year = modDate.getYear();
		if (year < 1000) year = year + 1900;
		if (time) {
		    var hour = modDate.getHours().toString();
 			if (hour.length == 1) hour = "0" + hour; 
			var minute = modDate.getMinutes().toString();
			if (minute.length == 1) minute = "0" + minute;
			var second = modDate.getSeconds().toString();
			if (second.length == 1) second = "0" + second;
		}
    document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
		document.write("This page was last modified: ");
		document.write(day + " " + ndate + " " + month + " " + year + " ");
		if (time) {
		    document.write(hour + ":" + minute + ":" + second + " ");
		}
		if (copyright) {
		    document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
		    document.write("Copyright &copy; Australian Professional Rodeo Association 2003-" + year + " ");
		    document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
		}
	}
}

function printData() {
    printWindow = window.open("", "", "width=1000,height=450,menubar=yes,toolbar=no,scrollbars=yes");
    printWindow.focus();
    printWindow.document.write("<html><head><script language='javascript' type='text/javascript' src='scripts/functions.js'></script><link href='styles/default.css' type='text/css' rel='stylesheet'></head><body><table cellpadding='0' cellspacing='0' width='100%' bgcolor='#ffff66'><tr align='center'><td valign='top' align='center'><img src='images/APRAlogo.jpg' width='194' height='162' style='border:3px solid #ffff66;'></td><td valign='top' align='center'><br><img src='images/ProRodeoAustralia.jpg' border='0'><br><br>" + pageimage.innerhtml + "</td></tr></table><br><br><table cellpadding='0' cellspacing='0' width='100%'><tr><td align='center'>" + data.innerhtml + "</td></tr></table></body></html>");
    printWindow.document.title = "Australian Professional Rodeo Association";
}

function showPicture(sPicture, sOwner) {
    var scrnWidth;
    var scrnHeight;
    scrnWidth = screen.width - 50;
    scrnHeight = screen.height - 150;
    printWindow = window.open("", "", "top=15,left=15,width=" + scrnWidth + ",height=" + scrnHeight + ",menubar=no,toolbar=no,scrollbars=yes");
    printWindow.focus();
    printWindow.document.write("<html><head></head><body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0' oncontextmenu='javascript:return false;'><table height='100%' width='100%'><tr><td align='center' valign='middle'><img src='" + sPicture + "' alt='" + sOwner + "' title='" + sOwner + "' /></td></tr></table></body></html>");
    printWindow.document.title = "Australian Professional Rodeo Association";
    try {
        printWindow.document.execCommand();
    }
    catch (e) { }
}

function openURL(sURL,newWindow) {
    if (newWindow) {
        openWindow = window.open(sURL);
    } else {
        location = sURL;
    }
}

function showLetterProfiles(letter) {
    var ltr = document.getElementById(letter);
    document.all.aa.className = 'C4';
    document.all.bb.className = 'C4';
    document.all.cc.className = 'C4';
    document.all.dd.className = 'C4';
    document.all.ee.className = 'C4';
    document.all.ff.className = 'C4';
    document.all.gg.className = 'C4';
    document.all.hh.className = 'C4';
    document.all.ii.className = 'C4';
    document.all.jj.className = 'C4';
    document.all.kk.className = 'C4';
    document.all.ll.className = 'C4';
    document.all.mm.className = 'C4';
    document.all.nn.className = 'C4';
    document.all.oo.className = 'C4';
    document.all.pp.className = 'C4';
    document.all.qq.className = 'C4';
    document.all.rr.className = 'C4';
    document.all.ss.className = 'C4';
    document.all.tt.className = 'C4';
    document.all.uu.className = 'C4';
    document.all.vv.className = 'C4';
    document.all.ww.className = 'C4';
    document.all.xx.className = 'C4';
    document.all.yy.className = 'C4';
    document.all.zz.className = 'C4';
    if (letter != 'no') {
        var ltr = document.getElementById(letter);
        ltr.className = 'C5';
    }
}