
function messageboard_Click()
{
window.location.href="http://venus.beseen.com/boardroom/h/51919";
}

function openWindow(theURL,winName,features) 
{ 
  window.open(theURL,winName,features);
}


function checkOS() {
  if(navigator.userAgent.indexOf('IRIX') != -1)
    { var OpSys = "Irix"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('98') != -1))  
    { var OpSys = "Windows98"; }
  else if((navigator.userAgent.indexOf('Win') != -1) &&
  (navigator.userAgent.indexOf('95') != -1))
    { var OpSys = "Windows95"; }
  else if(navigator.userAgent.indexOf('Win') != -1)
    { var OpSys = "Windows3.1 or NT"; }
  else if(navigator.userAgent.indexOf('Mac') != -1)
    { var OpSys = "Macintosh"; }
  else { var OpSys = "other"; }
  return OpSys;
}


// by leaving the following code outside of a function
// it will be executed everytime this file is included
// in an html file in the script tags
// it makes available the following self explanatory variables
// isNav4 isIE4 isIE4PC isIE3 isNav3
// in addition it unifies the layers test that differs in IE and Nav


var OpSys = checkOS();
var isNav4, isIE4, isIE4PC, isIE3, isNav3;
var range = "";
var styleRef = "";

if (navigator.appVersion.charAt(0) >= "4") {
	if (navigator.appName == "Netscape") {
		isNav4 = true;
		layerRef = "document.layers";
		styleRef = "";
		insideWindowWidth = window.innerWidth;
		isIE3 = isNav3 = isIE4 = isIE4PC = false;
	} else {
		isIE4 = true;
		if (OpSys != "Macintosh") {
			isIE4PC = true;
		} else {
			isIE4PC = false;
		}
		layerRef = "document.all";
		styleRef = ".style";
		range = "all.";
		isIE3 = isNav4 = isNav3 = false;
	}
} else if (navigator.appVersion.charAt(0) < "4") {
	if (navigator.appName == "Netscape") {
		isNav3 = true;
		isIE3 = isNav4 = isIE4 = isIE4PC = false;
	} else {
		isIE3 = true;
		isNav3 = isIE4 = isNav4 = isIE4PC = false;
	}
}


// this function utilises the vars that are set above.
// the frame redirect only takes effect with IE4+ or Netscape3+
function TestInFrame()
{
	if(top==self) { 
	var parent = "http://www.pro-researcher.co.uk/index.html"
	// var parent = "http://www.pro-researcher.freeserve.co.uk/index.html"
	// var parent = "http://www.no-27.freeserve.co.uk/index.html"
		var currURL = unescape(window.location.pathname);
		var ref = unescape(document.referrer);
		var newURL = parent + "?" + "main=" + currURL + "&ref=" + ref;
		
		// Netscape3+ or IE4+
		if (isNav3 || isNav4 || isIE4 || isIE5){
		location.replace(newURL);
		} else {
		document.write('<table width="620" bgcolor="#99CCCC"><TR><TD><font size="2">For a complete range of options visit our <a href="'+parent+'">home page<'+'/a><'+'/font><'+'/TD><'+'/TR><'+'/TABLE>');
		}
	}
}


// Source: Adapted from Webmonkey Code Library by Pro-researcher
// (http://www.hotwired.com/webmonkey/javascript/code_library/)

function getParams() {
  
  params = new Object();
    // The Object ("Array") where our data will be stored.
  
  separator = ',';
    // The token used to separate data from multi-select inputs
  
  query = '' + this.location;
    // Get the current URL so we can parse out the data.
    // Adding a null-string '' forces an implicit type cast
    // from property to string, for NS2 compatibility.
    
  query = query.substring((query.indexOf('?')) + 1);
    // Keep everything after the question mark '?'.
  
  if (query.length < 1) { return false; }  // Perhaps we got some bad data?
  
  keypairs = new Object();
  numKP = 1;
    // Local vars used to store and keep track of name/value pairs
    // as we parse them back into a usable form.
    
  while (query.indexOf('&') > -1) {
    keypairs[numKP] = query.substring(0,query.indexOf('&'));
    query = query.substring((query.indexOf('&')) + 1);
    numKP++;
      // Split the query string at each '&', storing the left-hand side
      // of the split in a new keypairs[] holder, and chopping the query
      // so that it gets the value of the right-hand string.
  }

  keypairs[numKP] = query;
    // Store what's left in the query string as the final keypairs[] data.
  
  for (i in keypairs) {
    keyName = keypairs[i].substring(0,keypairs[i].indexOf('='));
      // Left of '=' is name.
    keyValue = keypairs[i].substring((keypairs[i].indexOf('=')) + 1);
      // Right of '=' is value.
    while (keyValue.indexOf('+') > -1) {
      keyValue = keyValue.substring(0,keyValue.indexOf('+')) + ' ' + keyValue.substring(keyValue.indexOf('+') + 1);
        // Replace each '+' in data string with a space.
    }
    
    keyValue = unescape(keyValue);
      // Unescape non-alphanumerics
      
    if (params[keyName]) {
      params[keyName] = params[keyName] + separator + keyValue;
        // Object already exists, it is probably a multi-select input,
        // and we need to generate a separator-delimited string
        // by appending to what we already have stored.
    } else {
      params[keyName] = keyValue;
        // Normal case: name gets value.
    }
  }

  return params;
}


function fontsize_preformatted_text() {
if(navigator.appName == 'Netscape'){
document.write('<font face="courier new,courier,fixedsys,Lucida Sans Typewriter" size="3">');
}
else
{document.write('<font face="courier new,courier,fixedsys,Lucida Sans Typewriter" size="2">');
}
}
