function lastModified() 
{
	var x = 0;
	var y = 0;
	var date = new Date(document.lastModified);
	if ((date.getYear()) > 99) x = 100;
	if ((date.getYear()) > 1999) y = 1900;
	document.write("Page last updated: "+date.getDate()+"/"+(date.getMonth()+1)+"/"+(date.getYear()-x-y+2000)); 
}

function externalLinks() 
{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_parent";
	}
}

function openImage(image,im_width,im_height) { 
	dlg = window.open ("","Dialog",
				"toolbar=no,location=no,directories=no,status=no,menubar=no,"+
				"scrollbars=no,resizable=no,width="+im_width+",height="+im_height)
	dlg.document.write("<head><title>www.bsettc.co.uk/" + image +"</title></head>")
	dlg.document.write("<body><img src=" + image + "></body>")
}

function auto_text_so(year,month,day) {
	var today = new Date();
	var then = new Date(year,month,day);
	var strike_on=0;
	if (Date.parse(today)>=Date.parse(then)) {
		strike_on=1;
		document.write('<strike>');
	}
	return(strike_on);
}

function auto_text_so2(strike_on) {
	if (strike_on>0) {
		document.write('</strike>');
	}
}