// Ensures y2k compliance of a year
function y2k(number){return (number < 1000) ? number + 1900 : number;}

// Returns the copyright message with current year
var today = new Date();
var year = y2k(today.getYear());
var pageCopyright = "Copyright &copy;" + year + " <a href='http://www.triangulum.co.za' target='_blank'>'Triangulum Computers'</a>&nbsp;&nbsp;All rights reserved";

// Video window
function small_window(myurl) {
    var newWindow;
    var props = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=518,height=450,left=100,top=100';
    newWindow = window.open(myurl, '', props);
}

// For the donations page
function updateCurrency(target){
		if (document.all("rbCurr_0").checked){
			target.value = document.all("rbCurr_0").value;
		}
		if (document.all("rbCurr_1").checked){
			target.value = document.all("rbCurr_1").value;
		}
		if (document.all("rbCurr_2").checked){
			target.value = document.all("rbCurr_2").value;
		}
		if (document.all("rbCurr_3").checked){
			target.value = document.all("rbCurr_3").value;
		}
	  }
