// JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

/* Contact Form Validation */
function checkform ( form )
{
if (form.name.value == "") {
	alert( "Please enter your Name." );
	form.name.focus();
	return false ;
}
if (form.emailAddy.value == "") {
	alert( "Please enter your Email Address." );
	form.emailAddy.focus();
	return false ;
}
if(form.emailAddy.value.indexOf('@',0) < 0) {
    alert("Please enter a valid Email Address.");
    form.emailAddy.focus();
	return false;
  }
if(form.empty.value != "") {
    alert("Your message failed to send. Please contact the Website Administrator");
    return false;
  }
return true ;
}

// About Us Toggle

function davidF() {
	document.getElementById("fischer").style.display = "block";
	document.getElementById("aboutGeneral").style.display = "none";
}

function closeBios() {
	document.getElementById("fischer").style.display = "none";
	document.getElementById("aboutGeneral").style.display = "block";
}

function openChat() {
	document.getElementById("chat").style.display = "block";
}

function closeChat() {
	document.getElementById("chat").style.display = "none";
}
