function getyearstr(){
var today = new Date()
var year = today.getYear()
if (year<1000){
year+=1900
}
return year;
}

function encrypt(username,hostname,linktext){
var username = username || 'info';
var hostname = hostname || 'rdeagle.ca';
var address = username + '&#64;' + hostname;
var linktext = linktext || address;
var output = '<a href="&#109;&#97;&#105;&#108;' + '&#116;&#111;&#58;'+ address +'">'+ linktext +'</a>';
document.write(output);
}

function viewImage(url,urlwidth,urlheight) {
	
var url = url || 'http://www.rdeagle.ca/';
var urlwidth = urlwidth || 780;
var urlheight = urlheight || 585;
var screenwidth = screen.width;
var screenheight = screen.height;

if (urlwidth > screenwidth || urlheight > screenheight){ // url is larger
var showscroll = 'yes';
} else {
var showscroll = 'no';
}

if (urlwidth > screenwidth){ // width is larger
var leftpos = 0;
var winwidth = screenwidth;
} else {
var leftpos = (screenwidth - urlwidth)/2;
var winwidth = urlwidth;
}

if (urlheight > screenheight){ // height is larger
var toppos = 0;
var winheight = screenheight;
} else {
var toppos = (screenheight - urlheight)/2;
var winheight = urlheight;
}

var win=window.open(url,'new','toolbar=no,status=no,scrollbars='+ showscroll +',location=no,menubar=no,directories=no,resizable=yes,left=' + leftpos + ',top=' + toppos + ',width=' + winwidth + ',height=' + winheight + '');
win.focus();

}