
 function goToURL() { history.go(-1); }
  

function addbookmark()
{
  if (window.sidebar) {
    window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");
  } else if( document.all ) {
    window.external.AddFavorite(bookmarkurl, bookmarktitle);
  } else if( window.opera && window.print ) {
    return true;
  }
}

/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: CodeLifter.com | http://www.codelifter.com */
var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
  if (goodEmail) {
    good = true;
  } else {
    alert('Please enter a valid e-mail address.');
    field.focus();
    field.select();
    good = false;
  }
}


function mailThisUrl() {
  good = false
  checkEmailAddress(document.eMailer.address);
  if (good) {

u = window.location;
m = "I thought this might interest you...";
    // the following expression must be all on one line...
    window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
  }
}


function checkFrame(){
if (parent.location.href == self.location.href) {
	window.location.href = 'index.html';
}
}

function allez(showit,str1,itm){
if (showit) {
	alert(str1);
	itm.focus();
	}
}

function installSearchEngine() {
 if (window.external && ("AddSearchProvider" in window.external)) {
   // Firefox 2 and IE 7, OpenSearch
   window.external.AddSearchProvider("http://www.u1a.co.uk/IIS.xml");
// } else if (window.sidebar && ("addSearchEngine" in window.sidebar)) {
//   // Firefox <= 1.5, Sherlock
//   window.sidebar.addSearchEngine("http://example.com/search-plugin.src",
//                                  "http://example.com/search-icon.png",
//                                  "Search Plugin", "");
 } else {
   // No search engine support (IE 6, Opera, etc).
   alert("No search engine support");
 }
}


function boxOn(which,message) {
if (document.all||document.getElementById) {
which.className = 'BorderOn';
if (document.getElementById) {
document.getElementById("Message").innerHTML = message
window.defaultStatus = message;
}
else {
Message.innerHTML = message;
window.defaultStatus = message;
      }
   }
}
function boxOff(which) {
if (document.all||document.getElementById) {
which.className = 'BorderOff';
if (document.getElementById) {
document.getElementById("Message").innerHTML = offMessage
}
else {
Message.innerHTML = offMessage;
      }
   }
}
