function Start(page) {
OpenWin = this.open(page,'CtrlWindow', 'width=800,height=600,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes')
}
function openWindow(url) {
  popupWin = window.open(url,'new_page','width=100,height=70')
}
function ValidateForm(){
var UserName;
var UserComments;
var UserEmail;
var UserTel;
var UserFAX;
var ContactRequested;

	if(document.myForm.UserName.value == "") {
	
		window.alert("---Name is a required field.---\n It is required to be"
					+ " filled in, in order to process your request. ")
		
		return false;}
		
					
		if(document.myForm.Comments.value == "") {
	
			window.alert("---Comments is a required field.---\n It is required to be"
					+ " filled in, in order to process your request. ")
					
					return false;}
	
	
			if(document.myForm.ContactRequested.checked) {
			
				if  (document.myForm.UserEmail.value == "" && 
				+ document.myForm.UserTel.value == "" &&
				+ document.myForm.UserFAX.value == "") {
	
				window.alert("---You have requested to be contacted.---\n However  we can't"
						+ " seem to find any contact details, in order to  be contacted please fill"
						+ " appropriate contact to process your  request.\n You may Untick"
						+ " the contact request box to continue")
						
						return false;}
				}
				
				else { return true; }
}
function t(i) {
var e = document.getElementById(i);
var t = e.className;
if (t.match('invisible')) { t = t.replace(/invisible/gi, 'visible'); }
else { t = t.replace(/visible/gi, 'invisible'); }
e.className = t;
}
// switch styles
function setActiveStyleSheet(title) {
  var i, a, main;
  for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if (a.getAttribute("rel") &&
        a.getAttribute("rel").indexOf("style") != -1 &&
        a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}
function getActiveStyleSheet() {
  var i, a;
  for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if (a.getAttribute("rel") &&
        a.getAttribute("rel").indexOf("style") != -1 &&
        a.getAttribute("title") &&
        !a.disabled
        ) return a.getAttribute("title");
  }
  return null;
}
function getPreferredStyleSheet() {
  var i, a;
  for (i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if (a.getAttribute("rel") &&
        a.getAttribute("rel").indexOf("style") != -1 &&
        a.getAttribute("rel").indexOf("alt") == -1 &&
        a.getAttribute("title")
        ) return a.getAttribute("title");
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}
window.onload = function(e) {
  var cookie = readCookie("style");
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}
window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie("style", title, 365);
}
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
