function seabiscuit_signup_form(form){	if (form.sub1.value != "")	{		//alert(form.tracks.length);		//alert(form.tracks);		//alert("now here" + form.firstname.value);		if (form.firstname.value == ""){			alert ("You must enter a First Name");			form.firstname.focus();			return false;			}			if (form.lastname.value == ""){			alert ("You must enter your Last Name");			form.lastname.focus();			return false;			}			// IF EMAIL DOESN'T MATCH xxxxx@xxxxx.xxxxx WITH NO SPACES, BOUNCE IT		var mystring = new String(form.email.value)		var i = mystring.indexOf(' ')		var lRc = null;		if( i == -1 )		{			//	lRc = mystring.match("^[-\\w]+[-\\.\\w*]*@[-\\w]+\\.[-\\w]+[-\\.\\w*]*$")			lRc = mystring.match("^[-\\w_]+[-\\.\\w_]*@[-\\w_]+\\.[-\\w_]+[-\\.\\w_]*$")			if( lRc == null )			{				alert("Please type a valid e-mail address.");				form.email.focus();				return false;			}			else			{				// check confirmation email				//alert(mystring);				//if (form.email.value != form.confirm_email.value)				//if (mystring.value != form.confirm_email.value)				//if (form.email.value != form.confirm_email.value)				//{				//	alert("Please verify email address.");				//	form.confirm_email.focus();				//	return false;				//}			}		}		else		{			alert("No spaces allowed in email address, please remove any space characters.")			form.email.focus();			return false;		}		if (form.address1.value == ""){			alert ("You must enter your Address");			form.address1.focus();			return false;			}			if (form.city.value == ""){			alert ("You must enter your City");			form.city.focus();			return false;			}			if (form.state.value == ""){			alert ("You must enter your State");			form.state.focus();			return false;			}			if (form.zip.value == ""){			alert ("You must enter your Zip Code");			form.zip.focus();			return false;			}						if (form.country.value == ""){			alert ("You must enter your Country");			form.country.focus();			return false;			}			if (form.month.value == ""){			alert ("You must select your birthday Month");			form.month.focus();			return false;			}						if (form.day.value == ""){			alert ("You must enter birthday day");			form.day.focus();			return false;			}						mystring = form.year.value		lRc = mystring.match("^\\d\\d\\d\\d$");		if (lRc == null)		{			alert ("You must enter birthday year");			form.year.focus();			return false;		}/*		if (form.gender[0].checked == false && form.gender[1].checked == false){			alert ("You must select your gender");			form.gender[0].focus();			return false;			}			if (form.favorite_track_id.value == ""){			alert ("You must Select your favorite race track");			form.favorite_track_id.focus();			return false;			}*/		if (form.prefered_mime[0].checked == false && form.prefered_mime[1].checked == false){			alert ("You must select what format you would like to receive your newsletter");			form.prefered_mime[0].focus();			return false;			}		return true;//		if (!CheckForCheckedRadioButton(form.ques_1,"You missed Question 1")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_2,"You missed Question 2")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_3,"You missed Question 3")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_4,"You missed Question 4")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_5,"You missed Question 5")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_6,"You missed Question 6")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_7,"You missed Question 7")) { return false; };//		if (!CheckForCheckedRadioButton(form.ques_8,"You missed Question 8")) { return false; };	}	else	{		return false;	}}function IsSomethingChecked(frmElement){	var Valid = false;	var iCount = 0;	while((iCount < frmElement.length) && !Valid)	{		Valid = frmElement[iCount].checked		iCount++;	}	return Valid;}function CheckForCheckedRadioButton(frmElement,AlertText){	var Valid = false;	Valid = IsSomethingChecked(frmElement)	if (!Valid)	{		alert (AlertText);		frmElement[0].focus();		return false;	}	return Valid;}