function news_reference(directory, base_file)

// Presumes  a sequence of monthly files, "year_no/month_no_base_file.html", 
// e.g "09/01_lnews.html".  Function calculates 'year_no' and 'month_index', 
// from the built in 'Date' object, then, uses 'base_file' text (latter 
// excluding ".html", here added automatically),to write the appropriate 
// anchor tag, directory and filename, including the visible file title
// 'news', to provide for an html call of the current base_file.  

// The parameter 'directory' allows the new file to be correctly positioned.
// 'directory' will be './bnews/' for the highest level of web pages ('index', 
// 'link') and normally '../bnews/' otherwise, apart from 'news' where it will 
// be '../'.

// CORRECTnESS of LAST BIT OF COMMENT?

// PG:19.01.2009/03.10.2011.

{	var	now		= new Date(),
		month_no	= now.getMonth() + 1,
		year_no	= now.getYear(),
       	zero		= 0;

		if (year_no>100) year_no = year_no % 100;
		document.write('<a href=\"' + directory);
		if (year_no<10) document.write(zero);
       	document.write(year_no + '/');
		if (month_no<10) document.write(zero);
		document.write(month_no + '_' + base_file + '.html\">');
		document.write('news</a>');
	}



// End of file news_reference.js.





