<!--
var validPhoneNum = '0123456789-EXText ';  // allows numbers, dash
var validZip = '0123456789-';  // allows numbers
var validInt = '0123456789';     // allows numbers only (no decimal - add decimal if allowed)
var validIntD = '0123456789.';   // allows numbers only (no decimal - decimal allowed)
var validIntS = '0123456789/';   // allows numbers and a slash for dates
var validLetters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';  // allows letters only
var validLettersD = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-';  // allows letters and dash
var validLettersS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ';  // allows letters and space
var validLtrsNums = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789,;:".?!()';  // allow general text
var validEmail = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@0123456789.-';  // allow general text
var validEntry = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; // allow letters & numbers only

function validateKeyPress(e, validSet) 
{ 
    var key; 
    var keychar; 
         
    if(window.event || !e.which) // IE 
        key = e.keyCode; // IE 
    else if(e) 
        key = e.which;   // Netscape 
    else 
        return true;     // no validation 

    keychar = String.fromCharCode(key); 
    validSet += String.fromCharCode(8); 

    if (validSet.indexOf(keychar) < 0) 
      return false; 

    return true; 
} 

function getBigPic2(pic,width,height)
{
	pwidth = parseInt(width,10);
	pheight = parseInt(height,10);
	stats = "scrollbars=0,width="+pwidth+",height="+pheight+",top=15,left=15";
	BigWindow = open("","nw1",stats);
	BigWindow.document.write("<html><head><title>Ride Photos</title></head>");
	BigWindow.document.write("<body bgcolor='#FFFFFF' background='../../pics/picLoading.jpg' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
	BigWindow.document.write("<table border='0' cellpadding='0' cellspacing='0' align='center'>");
	BigWindow.document.write("<tr><td><img src='", pic, "'></td></tr>");
	BigWindow.document.write("</table>");
}

function getBigPic(picture)
{	newWindow = open('','newWin','scrollbars=no,resizable=yes,menubar=no,width=520,height=400,top=15,left=15');
	newWindow.document.write('<html><head><title>Ride Photos</title></head>');
	newWindow.document.write('<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
	newWindow.document.write('<table width="500" height="400" align="center" border="0" cellspacing="0" cellpadding="0" background="../../pics/picLoading.jpg">');
	newWindow.document.write('<tr><td><img src="',picture,'" width="500"></td></tr></table></body></html>');
}

  function validate()
  {
	var cForm = document.loginForm;
				
	if (cForm.memNum.value=="")
	{	
		alert("Please enter your member number.");
			cForm.memNum.focus();
			return false;
	}	
		else if (cForm.memPW.value == "")
		{
			alert("Please enter your password.");
			cForm.memPW.focus();
			return false;
		} 
  }
  
  function validate2()
  {
	var cForm = document.reminderForm;
				
	if (cForm.memEmail.value=="")
	{	
		alert("Please enter your email address.");
			cForm.memEmail.focus();
			return false;
	}	
  }

function validate3()
{
	var cForm = document.form1;
	if (cForm.memNum.value==""){ alert("Please fill in member number"); cForm.memNum.focus(); return false; }
	if (cForm.memFN.value==""){ alert("Please fill in member first name"); cForm.memFN.focus(); return false; }
	if (cForm.memLN.value==""){ alert("Please fill in member last name"); cForm.memLN.focus(); return false; }
	if (cForm.memExpDate.value==""){ alert("Please fill in member expiration date"); cForm.memExpDate.focus(); return false; }
}
function validate4()
{
	var cForm = document.editMemData;
	if (cForm.memFN.value==""){ alert("Please fill in member first name"); cForm.memFN.focus(); return false; }
	if (cForm.memLN.value==""){ alert("Please fill in member last name"); cForm.memLN.focus(); return false; }	
	var d = cForm.memJoinDate.value;
	if (d.length != 8) { alert("Please enter Join Date in MM/DD/YY format,\nadding leading zeros where necessary."); cForm.memJoinDate.focus(); return false;}
}
function validate5()
{
	var cForm = document.form1;
	if (cForm.memFN.value==""){ alert("Please fill in member first name"); cForm.memFN.focus(); return false; }
	if (cForm.memLN.value==""){ alert("Please fill in member last name"); cForm.memLN.focus(); return false; }
	var d = cForm.memExpDate.value;
	if (d.length != 8) { alert("Please enter Expiration Date in MM/DD/YY format,\nadding leading zeros where necessary."); cForm.memExpDate.focus(); return false;}
}

function validateForm()
{	var myform = document.form1;
		
	for (i=0; i<document.form1.elements.length; i++) //loop through text fields looking for blanks
	{	if (myform.elements[i].type=="password" && myform.elements[i].value=="") 
		{
		alert(myform.elements[i].id + " is blank"); // alert with field ID name and sentence
		myform.elements[i].focus();                   // set focus to blank field
		return false;
		break;
		}
	}
	if (myform.newMemPW.value != myform.confirmNewMemPW.value)
	{
		alert("Your new password and confirm new password fields do not match.\nPlease type again.");
		myform.newMemPW.focus();
		return false;
	}
	return true;
}

//-->






