function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function toggleT(a) {
if (document.all) { // is IE
    if(document.getElementById(a).style.display == 'none')
    {
      document.getElementById(a).style.display = 'block';
    }
    else
    {
      document.getElementById(a).style.display = 'block';
   }

}
if (document.getElementById && !document.all) { // is FF
    if(document.getElementById(a).style.display == 'none')
    {
      document.getElementById(a).style.display = 'table-row';
    }
    else
    {
      document.getElementById(a).style.display = 'table-row';
    }

}}

function toggleTa(a) {
if (document.all) { // is IE
    if(document.getElementById(a).style.display == 'block')
    {
      document.getElementById(a).style.display = 'none';
    }
    else
    {
      document.getElementById(a).style.display = 'none';
   }

}
if (document.getElementById && !document.all) { // is FF
    if(document.getElementById(a).style.display == 'table-row')
    {
      document.getElementById(a).style.display = 'none';
    }
    else
    {
      document.getElementById(a).style.display = 'none';
    }

}}

function submitContactForm() {
		if(document.ContactForm.Name.value.length < 1) {
			alert("Your Name Is Required.");
			document.ContactForm.Name.focus();
			return;
		} else if(document.ContactForm.email.value.length < 1) {
			alert("Your Email Address Is Required.");
			document.ContactForm.email.focus();
			return;
		} else if(document.ContactForm.Subject.value.length < 1) {
			alert("A Subject Is Required.");
			document.ContactForm.Subject.focus();
			return;
		} else if(document.ContactForm.Message.value.length < 1) {
			alert("A Message Is Required.");
			document.ContactForm.Message.focus();
			return;
		} document.ContactForm.submit();
}

function submitDonateForm() {
myOption = 0;
for (i=0;i<document.Info.Amount.length;i++) {
if (document.Info.Amount[i].checked) {
		myOption = 1;
	} 
if (document.Info.Amount[5].checked && document.Info.Amount_Other.value == 0) {
		 myOption = 0;
}
if (document.Info.Amount[5].checked && document.Info.Amount_Other.value > 0) {
		 document.Info.Amount[5].value = Number(document.Info.Amount_Other.value) + Number(document.Info.Amount_Other.value) * .029 + .30;
	var num = Number(document.Info.Amount[5].value);
	document.Info.Amount[5].value = num.toFixed(2);
}

}
if (myOption == 0) {
	alert("Please specify a gift amount.");
	return;
	} 
//if (document.Donate.amount[0].checked && document.Donate.amount_custom.value == "") {
//	alert("Please specify a gift amount.");
//	document.Donate.amount_custom.focus();
//	return;
//	} 
if(document.Info.Name.value.length < 1) {
	alert("Please specify a gift acknowledgement.");
	document.Info.Name.focus();
	return;
	}
document.Info.Amount_Other.value = "";
document.Info.submit();
}
function submitTixForm2() {
		if(document.Info.Quantity.value.length < 1) {
			alert("Please specify number of tickets.");
			document.Info.Quantity.focus();
			return;
		} else if(document.Info.Name.value.length < 1) {
			alert("Please specify your name.");
			document.Info.Name.focus();
			return;
		} else if(document.Info.Address.value.length < 1) {
			alert("Please specify your address including street, city, state and zip.");
			document.Info.Address.focus();
			return;
		} else if(document.Info.Phone.value.length < 10) {
			alert("Please specify your contact phone number including area code.");
			document.Info.Phone.focus();
			return;
		} else if(document.Info.Attendee1.value.length < 1) {
			alert("Please specify the members of your party.");
			document.Info.Attendee1.focus();
			return;
		} else if(document.Info.Attendee1_Entree.value.length < 1) {
			alert("Please specify the entree for the members of your party.");
			document.Info.Attendee1_Entree.focus();
			return;
		} 
//document.Info.Tickets.value = document.Tix.quantity.value;
document.Info.submit();
}