function validate() {
  fn=fm.full_name.value;
  em=fm.email.value;

function isEmail(strValue){
  var objRegExp = /^[a-z0-9](.+)@[a-z0-9](.+)$/;
   return objRegExp.test(strValue);
}
function isLetters(strValue){
 return (strValue.replace(/[A-Za-z]/g,"") == "");
}
msg=new String("");
if (fn.length==0){
  msg+="Full Name\n ";
}
if(!isLetters(fm.full_name.value)){
       alert("Please enter letters only for your name.");
              fm.full_name.select();
}
if (em.length==0){
  msg+="E-mail\n ";
}
if(!isEmail(fm.email.value)){
	alert("Please enter a VALID email address.");
	event.returnValue=false;
	fm.email.focus();
}
if (msg.length>1){
  msg="The following fields are required:\n "+msg;
  alert(msg);
  //event.returnValue=false;
  return false;
} else {
	fm.action='maillistAdd.php';
	fm.submit();
  }
}

function get(str){
	return document.getElementById(str);
}
function getN(str){
	return document.getElementsByName(str);
}
function RunFoo()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="770" height="230">\n');
    document.write('<param name=movie value="flash/lights_new.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/lights_new.swf" quality="high" width="770" height="230" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function RunFooB()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%">\n');
    document.write('<param name=movie value="flash/lights.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/lights.swf" quality="high" width="100%" height="100%" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function RunFooElanz()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="700" height="467">\n');
    document.write('<param name=movie value="http://www.old300club.com/flash/vtour.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="http://www.old300club.com/flash/vtour.swf" quality="high" width="700" height="467" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function RunElanzFlash()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="770" height="230">\n');
    document.write('<param name=movie value="flash/elanzheader.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/elanzheader.swf" quality="high" width="770" height="230" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function RunElanzIntro()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="720" height="480">\n');
    document.write('<param name=movie value="flash/intro.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<embed src="flash/intro.swf" quality="high" width="720" height="480" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>\n');
    document.write('</object>\n');
}
function Deacons()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="533" height="445">\n');
    document.write('<param name=movie value="flash/deacons.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/deacons.swf" quality="high" width="533" height="445" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function ModelSearch()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="533" height="445">\n');
    document.write('<param name=movie value="flash/modelsearch.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/modelsearch.swf" quality="high" width="533" height="445" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}
function Spokesmodels()
{
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="370" height="320">\n');
    document.write('<param name=movie value="flash/spokesmodels.swf" />\n');
    document.write('<param name=quality value=high />\n');
    document.write('<param name=wmode value=transparent />\n');
    document.write('<embed src="flash/spokesmodels.swf" quality="high" width="370" height="320" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="transparent"></embed>\n');
    document.write('</object>\n');
}


var TheSeparator = "/";
var TheSeparator2 = ", ";
var ShowDay ="yes";
var Days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var TheDate = new Date();

var TheWeekDay = TheDate.getDay();
var Day ="";
if (ShowDay == "yes"){
    Day = Days[TheWeekDay];
    Day += "";}

var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;

var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;

var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;

var D = "";
D += TheYear;


function loadCurves(){
	settings3 = {
          tl: { radius: 3 },
          tr: { radius: 3 },
          bl: { radius: 0 },
          br: { radius: 0 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
	}
	var myBoxObjectMain = new curvyCorners(settings3, "curve3");
	myBoxObjectMain.applyCornersToAll();
}


function createXHR(){
	var xhr;
	try{
		xhr = new ActiveXObject("MSXML2.XMLHTTP");
	}catch(e){
		try{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		}catch(E){
			xhr=false;
		}
	}
	if(!xhr && typeof XMLHttpRequest != 'undefined'){
		xhr= new XMLHttpRequest();
	}
	return xhr;
}
function setQEDiv(){
	if (xhr.readyState == 4){
		var res2 = xhr.responseText;
		l = getN("QE_Toolbar").length -1;
		get('QE_Toolbar').innerHTML = res2;
	}
}
function refreshBar(){
	//get('QE_Toolbar').style.display = 'block';
	xhr = createXHR();
	xhr.onreadystatechange = setQEDiv;
	xhr.open("GET","qetoolbar.php");
	xhr.send(null);
}
function setDiv(){
	if (xhr.readyState == 4){
		var res = xhr.responseText;
		l = getN("frm").length -1;
		get('frm').innerHTML = res;
		//get('QE_Toolbar').style.display = 'none';
		//refreshBar();
	}
}
function getContents(file){
	xhr = createXHR();
	xhr.onreadystatechange = setDiv;
	xhr.open("GET","sub.php?id=" + file);
	xhr.send(null);
}



function getInclude(id, url) {
  var req = false;
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id + "passed to clientSideInclude.");
  return;
 }
  if (req) {
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML = "Sorry, your browser does not support includes.";
  }
}
function findDiv(){
var e = document.getElementsByTagName("div");
for (var i=0; i < e.length; i++){
	if (e[i].style.display != "none"){
		//alert(e[3].id + " is visible");
	}
}
}