if(self.location != top.location) { top.location = self.location }

function noSite (param,date) {
	if (param==400) {alert( 'As at ' + date + ' site returned \n"Error 400: BAD REQUEST", \n possibly due to a server malfunction.\nYou could try clicking \'Dead Link\' icon, just in case...')}
	if (param==403) {alert( 'As at ' + date + ' site returned \n"Error 403: FORBIDDEN" \n Permission to access this page is blocked. \n This could be a temporary fault, so it may \n be worth trying the DEAD link or NSA link.')}
	if (param==404) (alert( 'As at ' + date + ' site returned \n"Error 404: PAGE NOT FOUND" \n The requested URL could not be found. \n This could be a temporary fault, so it may \n be worth trying the DEAD link.'))
	if (param==4042) (alert('As at ' + date + ' site returned \n"Error 404: PAGE NOT FOUND" \n The requested URL could not be found.\nThis could be a temporary fault, so it may \n be worth trying the DEAD link or NSA link.'))
	if (param==500) (alert('As at last audit site returned \nError 500: INTERNAL SERVER ERROR. \nPlease try again later'))
	if (param==1) (alert('No Web presence at time of last site audit. E-mail contact only.'))
	if (param==2) (alert('No NSA link at the time of last site audit.'))
	if (param==3) (alert('No Email contact details at time of last site audit.\nTry checking the Website itself for a \'Contact\' link.'))
	if (param==4) (alert('No Website or Email details at time of last site audit.'))
	if (param==5) (alert('This Web Site has been closed so is now inactive.'))
	if (param==6) (alert('Connection Failure error at time of last site audit.\nTry clicking\'Dead Link\' icon to try again.'))
	if (param==7) (alert('As at last audit site returned \n CONNECTION FAILED – however,\nyou could try clicking on the \'dead link\' icon to check\nif it was a temporary loss of connection.'))
	if (param =='timeout') (alert('As at last audit site returned \nTIMEOUT ERROR – however,\nyou could try clicking on the \'dead link\' icon to check\nif it was a temporary loss of connection.'))
	if (param =='detagged') (alert('Domain name has expired - may be temporary loss of site.\nTry clicking \'Dead Link\' icon to try again.'))
	if (param =='nohost') (alert('The host site cannot be found - may be temporary loss of site.\nTry clicking \'Dead Link\' icon to try again.'))
	}

function email() {
	var destination = 'mailto:chris@manvell.org.uk'
	var destn = 'chis'
	var emailWindow = window.open(destination,destn)
	emailWindow.focus()
	window.focus(destn)
	window.close()
	}

function newWindow(noticeboard) {
	var sHeight = screen.height-100
	noticeWindow = window.open(noticeboard,'noticeWindow','width=570 height=sHeight left=0 top=0 scrollbars=auto')
	noticeWindow.focus()
	}

function feedback() {
	var destination = 'http://www.breacais.demon.co.uk/feedback/lynx.htm'
	var sHeight = screen.height-100
	var params = 'width=570 height=' + sHeight + ' left=10 top=10 screenX=10 screenY=10 scrollbars=auto'
	noticeWindow = window.open(destination,'noticeWindow',params)
	noticeWindow.focus()
	}

function legendWindow(legend) {
var sHeight = screen.height-200
var params = 'width=590,height='+sHeight+',resizable=yes,scrollbars=yes,left=10,top=10'
	noticeWindow = window.open(legend,'NoticeWindow',params)
	noticeWindow.focus()
	}

function dtg( format,message ) {
if (Date.parse(document.lastModified) != 0)
	document.write('<div class=' + format + '>'+ message + document.lastModified + '</div>')
	}

function axonly () {
	alert('Site requires Active X controls to be enabled to display correctly.')
	}

function bbonly () {
	alert('Due to the size of the files used, this site can only \nsensibly be accessed if you have a broadband link.')
	}

function flashonly () {
	alert('No HTML content - Site can only be accessed if \nFlash is installed and enabled in your browser. \nClick on Flash icon to view.')
	}

function ieonly () {
	alert('Site may not display correctly on Firebird, Mozilla, Netscape, \nPhoenix, Opera, etc., possibly due to use of non-compliant HTML.')
	}

function nul () { return }


