// Routine for popup windows with title, size and background colour parameters. 

var newwindow = ''
var wheight = 0
var wwidth = 0
function popitup5(url , title, iwidth, iheight , colour) {
if (wheight!=iheight || wwidth!=iwidth){tidy()};
if (newwindow.location && !newwindow.closed && wwidth==iwidth && wheight==iheight) 
{ newwindow.focus(); newwindow.document.clear() } 
else 
{ 
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','','width=' + pwidth +',height=' +pheight + ',resizable=1');
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<img src=' + url + '>');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
}


//Routine to tidy up popup windows when page is left

function tidy()
{
if (newwindow.location && !newwindow.closed) { newwindow.close(); }

}


//Routine to write email address to avoid address harvisters.

function tf_email() { 

document.writeln("<A href=\"mailto:" + "mail" + "&#64;" + "thecraven.co.uk\">"  +    "carol" + "&#64;" + "thecraven.co.uk" + "\<\/A> ") ;}

// Based on JavaScript provided by Peter Curtis at www.pcurtis.com -->