<!-- hide from old browsers

var days = new Array();
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 	}
}

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}

window.onload = externalLinks;

// TOGGLE LAYERS FOR TABBED SHOW/HIDE DIV CONTENT

function toggleLayers(a,b) {
	var dge=document.getElementById;
	if(!dge)return;

    document.getElementById('tab_content1').style.display='none' ;
	document.getElementById('tab_content2').style.display='none' ;
	document.getElementById('tab_content3').style.display='none' ;

    document.getElementById('tab_cont1').className='tab' ;
	document.getElementById('tab_cont2').className='tab' ;
	document.getElementById('tab_cont3').className='tab' ;

	document.getElementById(b).className='tabon' ;

      document.getElementById(a).style.display =
      (document.getElementById(a).style.display=='block')?
      'none':'block';

      return false;
}

function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}

function taf_validator(theForm)
{
 	if(theForm.tellafriend1.value == "") {
 		 alert("Please enter a Name.");
 		 theForm.tellafriend1.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.tellafriend2.value)) {
		 alert("Please enter a valid Email Address");
		theForm.tellafriend2.focus();
		 return false;
	}

	return (true);
}

function nl_val(theForm)
{

 	if(theForm.yourname.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.yourname.focus();
 		 return(false);
 	}

 	if(theForm.yourname.value == "your name") {
 		 alert("Please enter your Full Name.");
 		 theForm.yourname.focus();
 		 return(false);
 	}

	if(!checkEmail(theForm.emailaddress.value)) {
		 alert("Please enter a valid Email Address");
		theForm.emailaddress.focus();
		 return false;
	}

	return (true);
}

// - end hiding -->