<!--
	//RegExp for e-mail address validation
	re1 = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})$/;

    //RegExp for simple address validation - no PO Box addresses
    re4 = /^.*[Pp]{1}[\. ]*[Oo]{1}[\. ]*[Bb]{1}[Oo]{1}[Xx]{1}.*$/;

    //RegExp for zip codes
    re2 = /^\d{5}$/;

    //RegExp for names
    re3 = /^[a-zA-Z].*$/;

    //RegExp for phone numbers (currently not in use)
    //re3 = /^\(?\d{3}([-\. /]|(\)|\) ))?\d{3}[-\. ]?\d{4}$/;


    function IsNumeric(val)
    {
    	//Uses a Regular Expression to determine if a string represents a numeric value

    	reNum = /^\d+[\.]?\d*$/;

        if (reNum.test(val))
        	return true;
        else
    		return false;
    }

    function isBookingValid(accountForm)
    {
    	//Validation for the form during the registration process

        if(accountForm.txtPartName.value == "")
        {
            alert("Please specify the Participant's Name");
            accountForm.txtPartName.focus();
            return false;
        }
        if(accountForm.selMonth.value == 0 || accountForm.selDay.value == 0 || accountForm.selYear.value == 0 )
        {
        	alert("Please specify the Participant's Date of Birth");
            accountForm.selMonth.focus();
            return false;
        }
        if(accountForm.radGender.value == "")
        {
        	alert("Please specify the Participant's Gender");
            accountForm.txtLName.focus();
            return false;
        }
        if(accountForm.txtParentName.value == "")
        {
            alert("Please specify the Parent's Name");
            accountForm.txtParentName.focus();
            return false;
        }
        if(!IsNumeric(accountForm.txtPAreaCode.value) || !IsNumeric(accountForm.txtPExchange.value) || !IsNumeric(accountForm.txtPLastFour.value))
        {
            alert("Please provide a valid Daytime Phone Number");
            accountForm.txtPAreaCode.focus();
            return false;
        }
        if(accountForm.txtEMail.value == "" || !re1.test(accountForm.txtEMail.value))
        {
        	alert("Please provide a valid e-mail address.");
            accountForm.txtEMail.focus();
            return false;
        }
        if(accountForm.txtAddress1.value == "")
        {
        	alert("Please provide your street address.");
            accountForm.txtAddress1.focus();
            return false;
        }
        if(accountForm.txtCity.value == "")
        {
        	alert("Please provide the name of your city.");
            accountForm.txtCity.focus();
            return false;
        }
        if(accountForm.selState.value == "--")
        {
        	alert("Please select a state.");
            accountForm.selState.focus();
            return false;
        }
        if(accountForm.txtZipCode.value == "" || !re2.test(accountForm.txtZipCode.value))
        {
        	alert("Please enter a valid zip code.");
            accountForm.txtZipCode.focus();
            return false;
        }
        if(accountForm.txtEmergContact.value == "")
        {
            alert("Please provide the name of an Emergency Contact.");
            accountForm.txtEmergContact.focus();
            return false;
        }
        if(!IsNumeric(accountForm.txtEAreaCode.value) || !IsNumeric(accountForm.txtEExchange.value) || !IsNumeric(accountForm.txtELastFour.value))
        {
            alert("Please provide the Emergency Contact's Phone Number");
            accountForm.txtEAreaCode.focus();
            return false;
        }
        //If all checks pass, the form is valid
        return true;
    }

    function subForm()
    {
     	//if(isFormValid(document.frmBasicInfo))
			document.frmBasicInfo.submit();

    }
-->

