
 where = "ayrshire-flyers";
 zone = "org";
 country = "uk";
 symbol = "@";
 how = 'm'+'a'+'i'+'l'+'t'+'o'+':'
 af = symbol + where + '.' + zone + '.' + country;

function sendit(who)
{
	return "<a href='" + how + who + af + "'>" + who + af + "</a>";	
	
}

function writeit(who)
{
	document.write( "<a href='" + how + who + af + "'>" + who + af + "</a>");	
	
}


function emitFooter()
{
	var today = new Date();
	var year = today.getFullYear();

	document.write('<div class=footer>');	
	document.write('For further information about the club please contact the secretary at: ' + sendit('secretary'));  
	document.write('<br>');
	
	document.write('To report problems with the website, or to suggest additions, please contact: ' + sendit('support'));  

	
	document.write('</div>');


}

function emitNewsArchive()
{
	document.write('<h3>Sk8scoltand Newsletter Index</h3>');
	document.write('<ul>');
	document.write('	<li><a href="040406.htm" >4th April 2006</a></li>');
	document.write('	<li><a href="200206.htm" >20th February 2006</a></li>');
	document.write('	<li><a href="250106.htm" >25th January 2006</a></li>');
	document.write('	<li><a href="050106.htm" >5th January 2006</a></li>');
	document.write('	<li><a href="111105.htm" >11th November 2005</a></li>');
	document.write('	<li><a href="270905.htm" >27th September 2005</a></li>');
	document.write('	<li><a href="060405.htm" >6th April 2005</a></li>');
	document.write('	<li><a href="140305.htm" >14th March 2005</a></li>');
	document.write('	<li><a href="010305.htm" >1st March 2005</a></li>');
	document.write('	<li><a href="100205.htm" >10th February 2005</a></li>');
	document.write('</ul>');
}

	
// Opens a popup window with default settings.
// Use this when the parent needs the popup to work as a modal dialog, and you need to set
// explicit for the popup window
function openCustomPopupWindow(url, name, args) 
{
	if ((typeof(popupWindow) != "object") || (popupWindow == null))
	{
		popupWindow = window.open(url,name,args);
	} 
	else 
	{
		if (!popupWindow.closed)
		{ 
			popupWindow.location.href = url;
		} 
		else 
		{
			popupWindow = window.open(url, name, args);
		}
	}
	if (popupWindow.opener == null) popupWindow.opener = self;
	popupWindow.focus();
}

// Closes the popup window - if it is open
// Can be used by the parent to automatically close the popup if the parent gets focus:
// <body onfocus="closePopupWindow()">
function closePopupWindow()
{
	if ((typeof(popupWindow) == "object") && (popupWindow != null))
	{
		if (!popupWindow.closed)
		{
			popupWindow.close();
		}
		popupWindow = null;
	}
}

function PopupPic(sPicURL) 
{ 
     window.open( "popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200"); 
} 


today = new Date

weekDayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
monthName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December")

function printDate()
{
document.write("<b>" + weekDayName[today.getDay()]+ ", " + monthName[today.getMonth()] + " " + today.getDate()+  ", " + today.getYear() + "</b>")

}


