var RunningIE4
RunningIE4 = (msieversion() >=4);

function msieversion() {
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 ) // is Microsoft Internet Explorer; return version number
return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
return 0 // is other browser
}

var RunningNav4 = (Netscapeversion() >= 4)
function Netscapeversion() {
if (window.navigator.appName != "Netscape") {
return 0
} else {
return parseInt(window.navigator.appVersion.substring(0, 1))
}
}

var DHTMLbrowser = (RunningIE4 | RunningNav4) 


document.write("<STYLE id=defined></STYLE>");
document.close;
apost="'";
function getCookie(s)
{
var target = s + "=";
var targetLength = target.length;
var index = 0;
while (1) //search while 1 is nonzero i.e. forever
{
var offset = index + targetLength;
if (document.cookie.substring(index, offset) == target)
{
var tail = document.cookie.indexOf(";",offset);
if (tail == -1)
{
tail = document.cookie.length;
}
return unescape(document.cookie.substring(offset,tail));
}
index = 1 + document.cookie.indexOf(" ",index);
if (index == 0 || index >= document.cookie.length)
{
return null;
}
}
return null;
}
function writecss(cs) {document.cookie="ss="+cs+"s"+";expires=Sat, 31-Dec-69 23:59:00 GMT";top.location.href="Index.htm"}
message = "Sorry, this function has been disabled";
function click(e)
{ if (document.all)
{ if (event.button == 2)
{ alert(message); return false; 
}
}
if (document.layers)
{ if (e.which == 3)
{ alert(message); return false; 
}
}
}
if (document.layers)
{ document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
hp="Back to www.isihac.org.uk";
shorthp="www.isihac.org.uk";
tp="Back to the Top of this Page";
shorttp="Top of this Page";
function homelink()
{ document.write("<P><A HREF='default.php' TARGET='_top'");
document.write("onmouseover='javascript:stat(hp); return true'");
document.write("><IMG class=home SRC='homepage.gif'></A>")
}
function hometext()
{ document.write("<A HREF='default.php' TARGET='_top'");
document.write("onmouseover='javascript:stat(hp); return true'");
document.write(">Back to <I>"+shorthp+"</I></A>")
}
function cprt()
{ document.write("<div class=cprt><BR>Copyright &copy; 1998-2004 Kevin Hale. All rights reserved</div>");
}
function retlink(ref,info,tgt)
{ infod="Back to "+info+" Page";
document.write("<P><A HREF='"+ref+"'");
document.write("onmouseover='javascript:stat(infod); return true;'");
if (tgt != null)
{document.write(" TARGET='"+tgt+"'");};
document.write(">Back to <I>"+info+" Page</I></A>");
}
function stat(sMsg)
{ window.status = sMsg;
setTimeout("erasestat()",3000);
return true;
}
function erasestat()
{
window.status = " ";
}
function lastupdated()
{
months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
a = new Date(document.lastModified);
if (a.getTime() != 0) {   //check that server has provided a lastmodified date
document.write("<H6><I>Last updated</I> <BR>");
DayNum = "0" + a.getDate();
document.write(DayNum.substring(DayNum.length - 2,DayNum.length)," ");
document.write(months[a.getMonth()]," ")
document.write(a.getFullYear(),"</H6>");
}
else document.write("&nbsp;");   //if lastmodified date not available
}

