function PrintThis(BASEHREF, member_name, country)
{
 // test browsers ability to do this
 if (document.getElementById)
 {
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";
       sOption+="scrollbars=yes,width=750,height=500,left=100,top=25";

   var sWinHTML = document.getElementById('printerfriendly').innerHTML;

       // strip links
       // if the URL has "print_friendly" comment then don't want to get rid the content - might be a meet name
       sWinHTML = sWinHTML.replace(/<!--print_friendly--><a\s.+">/gi,"&nbsp;");
       // get rid of all other links
       sWinHTML = sWinHTML.replace(/<a\s.+<\/a>/gi,"&nbsp;");
       // get rid of all the </a> remaining from the first step above
       sWinHTML = sWinHTML.replace(/<\/a>/gi,"&nbsp;");

       // strip bgcolor
       sWinHTML = sWinHTML.replace(/\sbgcolor="?.{7}"?/gi,"");

       // strip font colour
       sWinHTML = sWinHTML.replace(/<font color="?\w+"?>/gi,"");
       sWinHTML = sWinHTML.replace(/<\/font>/gi,"");

       // Get today's current date.
       var now = new Date();
       // Array list of days.
       var days = new Array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
       // Array list of months.
       var months = new Array ('January','February','March','April','May','June','July','August','September','October','November','December');
       // Calculate the number of the current day in the week.
       var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
       var date_short = now.getDate();
       // 2 digit month
       var month = ((now.getMonth()<9) ? "0" : "")+ (now.getMonth() + 1);
       var month_short = now.getMonth() + 1;
       // Calculate four digit year.
       function fourdigits(number)	{
	 return (number < 1000) ? number + 1900 : number;
								}
       // Join it all together
       //today =  days[now.getDay()] + ", " +
       //         months[now.getMonth()] + " " +
       //         date + ", " +
       //         (fourdigits(now.getYear())) ;
       //today =  now.getDate() + " " +
       //         months[now.getMonth()] + " " +
       //         (fourdigits(now.getYear())) ;

       //var country = "NZL";
       if (country == "USA") {
         today = month_short + "/" + date_short + "/" + now.getFullYear();
       }
       else if (country == "NZL") {
         today = date_short + "/" + month_short + "/" + now.getFullYear();
       }
       else {
         today =  now.getFullYear() + "-" + month + "-" + date ;
       }

   var winprint=window.open("","",sOption);
       winprint.document.open();
       winprint.document.write('<html><head>\n');
       winprint.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
       winprint.document.write('<base href="'+BASEHREF+'">\n');
       winprint.document.write('<link rel="stylesheet" href="stylesheet/stylesheet_printer_friendly.css" type="text/css">\n');
       winprint.document.write('</head><body bgcolor=#ffffff>\n');
       winprint.document.write('<img src="images/spacer.gif" border=0 height=15 width=50><img src="images/TYMtitle01wht.png" border=0 height=55 width=285><br><br>\n');
       if (member_name != "") {
         winprint.document.write('<b>' +member_name+ '</b><br>\n');
        }
       winprint.document.write(today+ '</b><br><br>\n');
       winprint.document.write(sWinHTML);
       winprint.document.write('</body></html>');
       winprint.document.close();
       winprint.focus();
 }
 else
   alert("Your browser is not able to perform this function. You will need to upgrade your browser or simply print the page as it is currently displayed.");
}