

function popup(directions) {
		winpopup=window.open(directions,"winpopup","width=400,height=300,resizable=no");
}
	
	
function chngScrollbar( ) {
	document.body.style.scrollbarFaceColor="#8FBC8F"
	document.body.style.scrollbarTrackColor="#D2EACC"
}
	

	
<!-- check form functions below  -->

	function checkForm(form) {
		if(!checkName(form)) return;
		if(!checkEmail(form)) return;
		if(!checkPhone(form)) return;
		if(!checkAddInfo(form)) return;
		if(!checkComments(form)) return;

		alert("All entries are okay."); 
		return;
	}

	function validatePrompt(Str,PromptStr){
		alert(PromptStr);
		Ctrl.focus();
		return;
	}

	function checkName(form) {
		Ctrl=form.yourName;
		if(Ctrl.value=="") {
			validatePrompt(Ctrl,"Please enter your name");
			document.contactUs.yourName.focus();
			return(false);
		
		} else 
		return(true);
	}
	
	function checkEmail(form) {
		Ctrl=form.email;

	<!-- check for the @ sign in the e-mail address  -->

		ind=Ctrl.value.indexOf('@',0);

		if(Ctrl.value.length==0) {
			validatePrompt(Ctrl,"Please enter your email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==-1) {
			validatePrompt(Ctrl,"No @ found ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==0) {
			validatePrompt(Ctrl,"Address is blank prior to @ ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==Ctrl.value.length-1) {
			validatePrompt(Ctrl,"Address is blank after the @ ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else

	<!-- check for the period in the e-mail address  -->

		ind=Ctrl.value.indexOf('.',0);

		if(Ctrl.value.length==0) {
			validatePrompt(Ctrl,"Please enter your email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==-1) {
			validatePrompt(Ctrl,"No period was found in your e-mail address ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==0) {
			validatePrompt(Ctrl,"Address is blank prior to the period ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else if(ind==Ctrl.value.length-1) {
			validatePrompt(Ctrl,"Address is blank after the period ---> Please enter a valid email address");
			document.contactUs.email.focus();
			return(false);
		} else
			
			
		return(true);
	}



	function checkComments(form){
		Ctrl=form.comments;
		if(Ctrl.value=="") {
			validatePrompt(Ctrl,"Please enter your comments.");
			document.contactUs.comments.focus();
			return(false);
		} else
		return(true);
	}
	
	
	re = /^\(?(\d{3})\)?[\.\-\/ ]?(\d{3})[\.\-\/ ]?(\d{4})$/

		function checkPhone(form) {
			validPhone = re.exec(form.phone.value)
			
			
			
			if (validPhone) {
				form.phone.value = "(" + validPhone[1] + ") " + validPhone[2] + "-" + validPhone[3]
			}
			else {
				alert(contactUs.phone.value + " isn't a valid phone number")
				form.phone.focus()
				form.phone.select()
			}
			return false
		}

<!-- check form functions above -->


<!-- menu function - sliding  -->

function toggleMenu(currMenu) {
			if (document.getElementById) {
				thisMenu = document.getElementById(currMenu).style
				if (thisMenu.display == "block") {
					thisMenu.display = "none"
				}
				else {
					thisMenu.display = "block"
				}
				return false
			}
			else {
				return true
			}
		}
		
<!-- menu function - sliding  -->

<!-- msg function - scrolling -->
	
	
 function ScrollMessage() {

   newtext = msg.substring(pos, msg.length) +
      "...  ..." + msg.substring(0, pos);
   newtext=newtext.substring(0,73);
   obj = document.getElementById("scroll");
   obj.firstChild.nodeValue = newtext;
   pos++;
   if (pos > msg.length) pos = 0;
   window.setTimeout("ScrollMessage()",225);
}


<!-- msg function - scrolling -->


	function chgSlide(direction) {
		if (document.images) {
			thisPic = thisPic + direction
			if (thisPic > imgCt) {
				thisPic = 0
			}
			if (thisPic < 0) {
				thisPic = imgCt
			}
		}
		document.churchPictures.src=pics[thisPic]
	}	

