<!--
 function Validate_ContactForm()
{
	if (document.form.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.form.strContactPerson.focus();
		return(false);
	}
	if (document.form.strPhoneNumber.value.length == 0){
		alert('You must enter A PHONE NUMBER to continue.');
		document.form.strPhoneNumber.focus();
		return(false);
	}
	if (document.form.strEmailAddress.value.length == 0){
		alert('You must enter AN E-MAIL ADDRESS to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}
	
	
	if (document.form.strInterestedIn.value == "#"){
		alert('You must choose a location to continue.');
		document.form.strInterestedIn.focus();
		return(false);
	}
	
	
	
	return (true);
} 
 function Validate_ContactForm2()
{
	if (document.form.strContactPerson.value.length == 0)
	{
		alert('You must enter A CONTACT PERSON to continue.');
		document.form.strContactPerson.focus();
		return(false);
	}
	
	if (document.form.strPhoneNumber.value.length == 0){
		alert('You must enter A PHONE NUMBER to continue.');
		document.form.strPhoneNumber.focus();
		return(false);
	}
	
	if (document.form.strPhoneNumber.value.length > 0){
	
	 // Check for correct phone number format
     var rePhoneNumber = new RegExp(/^\(*[1-9]\d{2}\)*\s?\d{3}\-\d{4}$/);
     
     // reformat phone number
     var s = ParseUSNumber(document.form.strPhoneNumber.value);
     
     if ( s == "" ) {
     alert("Please enter your ten digit phone number. Include area code.");
     document.form.strPhoneNumber.focus();
     return false;
     }
     
     
     //var s = document.form.strPhoneNumber.value;
     if (!rePhoneNumber.test(s)) {
          alert("Phone Number Must Be Entered As: 555 555-1234 or (555) 555-1234");
          document.form.strPhoneNumber.focus();
          return false;
     }
     
     document.form.strPhoneNumber.value = s;
	
	}

	if (document.form.strEmailAddress.value.length == 0){
		alert('You must enter AN E-MAIL ADDRESS to continue.');
		document.form.strEmailAddress.focus();
		return(false);
	}

	 
	if (document.form.strEmailAddress.value.length > 0){
	    
	    var email = document.form.strEmailAddress.value;
        var AtPos = email.indexOf("@");
        var StopPos = email.lastIndexOf(".");
        
        var error = "n";
        
        if (AtPos == -1 || StopPos == -1) {
           error = "y";
        }

        if (StopPos < AtPos) {
           error = "y";
        }

        if (StopPos - AtPos == 1) {
           error = "y";
        } 
	    
	    
	    if (error == "y") {
		    alert('You must enter A valid EMAIL ADDRESS or NO EMAIL ADDRESS to continue.');
		    document.form.strEmailAddress.focus();
		    return(false);
		}
	}
	
	
	
	if (document.form.strInterestedIn.value == "#"){
		alert('You must choose a club to continue.');
		document.form.strInterestedIn.focus();
		return(false);
	}
	
	

	return (true);
} 


 function Validate_phone()
{
	if (document.form.strPhoneNumber.value.length == 0){
		//alert('You must enter A PHONE NUMBER.');
		//document.form.strPhoneNumber.focus();
		return(true);
	} else {
	
	 // Check for correct phone number format
     var rePhoneNumber = new RegExp(/^\(*[1-9]\d{2}\)*\s?\d{3}\-\d{4}$/);
     
     // reformat phone number
     var s = ParseUSNumber(document.form.strPhoneNumber.value);
     
     if ( s == "" ) {
     alert("Please enter your ten digit phone number. Include area code.");
     //document.form.strPhoneNumber.focus();
     return(true);
     }
     
     
     //var s = document.form.strPhoneNumber.value;
     if (!rePhoneNumber.test(s)) {
          alert("Phone Number Must Be Entered As: 555 555-1234 or (555) 555-1234");
          //document.form.strPhoneNumber.focus();
          return(true);
     }
     
     document.form.strPhoneNumber.value = s;
	
   }	

	return (true);
} 


function ParseUSNumber(PhoneNumberInitialString)
  {
    var FmtStr="";
    var index = 0;
    var LimitCheck;

    LimitCheck = PhoneNumberInitialString.length;
    while (index != LimitCheck)
      {
        if (isNaN(parseInt(PhoneNumberInitialString.charAt(index))))
          { }
        else
          { FmtStr = FmtStr + PhoneNumberInitialString.charAt(index); }
        index = index + 1;
      }
    if (FmtStr.length == 10)
      {
        FmtStr = "(" + FmtStr.substring(0,3) + ") " + FmtStr.substring(3,6) + "-" + FmtStr.substring(6,10);
      }
    else
      {
        FmtStr="";
      }
    return FmtStr;
  }





// (C) 2002 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header.

// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 1;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this

// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.
// Caution: The number of Pictures *must*
// equal the number of Captions!

Picture[1]  = 'images/fader1.jpg';
Picture[2]  = 'images/fader2.jpg';
Picture[3]  = 'images/fader3.jpg';
Picture[4]  = 'images/fader4.jpg';
Picture[5]  = 'images/fader5.jpg';
Picture[6]  = 'images/fader6.jpg';

// Specify the Captions...
// To add more captions, just continue
// the pattern, adding to the array below.
// To use fewer captions, remove lines
// starting at the end of the Caption array.
// Caution: The number of Captions *must*
// equal the number of Pictures!

Caption[1]  = "This is the first caption.";
Caption[2]  = "This is the second caption.";
Caption[3]  = "This is the third caption.";
Caption[4]  = "This is the fourth caption.";
Caption[5]  = "This is the fourth caption.";
Caption[6]  = "This is the fourth caption.";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
//-->


