
var OldWhere;

var domain = "BasOp.org.uk";
window.defaultStatus="http://www." + domain;
window.onerror=myOnError;
var owner = "Basildon Operatic Society";
var lastmoddate = new Date(document.lastModified);
//var lastmoddate = document.lastModified;

if (lastmoddate == "") {
//if (lastmoddate == 0) {
   var PageData = "Last modified: Unknown. &copy; 2003 Copyright " + owner;
} else {
   var PageData = "Last modified: " + lastmoddate.getDate() + "/" + (lastmoddate.getMonth()+1) + "/" + lastmoddate.getFullYear() + ". &copy; "
		 + lastmoddate.getFullYear() + " " + owner;
}


function myOnError(){
    if (OldWhere != 'Data') {
       self.location.href = "frame.htm";
    } else {
       self.location.href = "frame.htm?" + self.location.pathname;
    }
    return true
}

function PutInFrame (where) {
   OldWhere = where;
//   top.document.title = self.document.title;
//   self.document.writeln("My message: " + parent.location.href);
   if (parent.location.href == self.location.href) {
      if (where != 'Data') {
         self.location.href = "frame.htm";
      } else {
         self.location.href = "frame.htm?" + self.location.pathname;
      }
   }
}

function NoSpam (email, site, display) {
   if (site == undefined) {
      site = domain
   }

   if (site == "") {
      site = domain
   }

   if (display == undefined) {
      display = email + "@" + site
   }

   if (display == "") {
      display = email + "@" + site
   }
   document.write("<A href=mailto:" + email + "@" + site + ">" + display + "</A>")
}

