
	function Display(){
	alert("Thank you " + document.JoinUs.FirstName.value + " " + document.JoinUs.LastName.value + " for joining CTS. Your information will be processed shortly.");
	return true;	
	}



<!--
function _CF_onError(form_object, input_object, object_value, error_message)
    {
	alert(error_message);
       	return false;	
    }

function _CF_hasValue(obj, obj_type)
    {
    if (obj_type == "TEXT" || obj_type == "PASSWORD")
	{
    	if (obj.value.length == 0) 
      		return false;
    	else 
      		return true;
    	}
    else if (obj_type == "SELECT")
	{
        for (i=1; i < obj.length; i++)
	    	{
		if (obj.options[i].selected)
			return true;
		}

       	return false;	
	}
	}



function _CF_checkinteger(object_value)
    {
    //Returns true if value is a number or is NULL
    //otherwise returns false	

    if (object_value.length == 0)
        return true;

    //Returns true if value is an integer defined as
    //   having an optional leading + or -.
    //   otherwise containing only the characters 0-9.
	var decimal_format = ".";
	var check_char;

    //The first character can be + -  blank or a digit.
	check_char = object_value.indexOf(decimal_format)
    //Was it a decimal?
    if (check_char < 1)
	return _CF_checknumber(object_value);
    else
	return false;
    }



function _CF_numberrange(object_value, min_value, max_value)
    {
    // check minimum
    if (min_value != null)
	{
        if (object_value < min_value)
		return false;
	}

    // check maximum
    if (max_value != null)
	{
	if (object_value > max_value)
		return false;
	}
	
    //All tests passed, so...
    return true;
    }



function _CF_checknumber(object_value)
    {
    //Returns true if value is a number or is NULL
    //otherwise returns false	

    if (object_value.length == 0)
        return true;

    //Returns true if value is a number defined as
    //   having an optional leading + or -.
    //   having at most 1 decimal point.
    //   otherwise containing only the characters 0-9.
	var start_format = " .+-0123456789";
	var number_format = " .0123456789";
	var check_char;
	var decimal = false;
	var trailing_blank = false;
	var digits = false;

    //The first character can be + - .  blank or a digit.
	check_char = start_format.indexOf(object_value.charAt(0))
    //Was it a decimal?
	if (check_char == 1)
	    decimal = true;
	else if (check_char < 1)
		return false;
        
	//Remaining characters can be only . or a digit, but only one decimal.
	for (var i = 1; i < object_value.length; i++)
	{
		check_char = number_format.indexOf(object_value.charAt(i))
		if (check_char < 0)
			return false;
		else if (check_char == 1)
		{
			if (decimal)		// Second decimal.
				return false;
			else
				decimal = true;
		}
		else if (check_char == 0)
		{
			if (decimal || digits)	
				trailing_blank = true;
        // ignore leading blanks

		}
	        else if (trailing_blank)
			return false;
		else
			digits = true;
	}	
    //All tests passed, so...
    return true
    }



function _CF_checkrange(object_value, min_value, max_value)
    {
    //if value is in range then return true else return false

    if (object_value.length == 0)
        return true;


    if (!_CF_checknumber(object_value))
	{
	return false;
	}
    else
	{
	return (_CF_numberrange((eval(object_value)), min_value, max_value));
	}
	
    //All tests passed, so...
    return true;
    }



function _CF_checkphone(object_value)
    {
    if (object_value.length == 0)
        return true;
		
    if (object_value.length != 12)
        return false;

	// check if first 3 characters represent a valid area code
    if (!_CF_checknumber(object_value.substring(0,3)))
		return false;
    else
	if (!_CF_numberrange((eval(object_value.substring(0,3))), 100, 1000))
		return false;

	// check if area code/exchange separator is either a'-'
	if (object_value.charAt(3) != "-")
        return false

	// check if  characters 5 - 7 represent a valid exchange
    if (!_CF_checknumber(object_value.substring(4,7)))
		return false;
    else
	if (!_CF_numberrange((eval(object_value.substring(4,7))), 100, 1000))
		return false;
	
	// check if exchange/number separator is either a'-'
	if (object_value.charAt(7) != "-")
        return false;

	// make sure last four digits are a valid integer
	if (object_value.charAt(8) == "-" || object_value.charAt(8) == "+")
        return false;
	else
	{
		return (_CF_checkinteger(object_value.substring(8,12)));
	}
    }



function _CF_checkzip(object_value)
    {
    if (object_value.length == 0)
        return true;
		
    if (object_value.length != 5 && object_value.length != 10)
        return false;

	// make sure first 5 digits are a valid integer
	if (object_value.charAt(0) == "-" || object_value.charAt(0) == "+")
        return false;

	if (!_CF_checkinteger(object_value.substring(0,5)))
		return false;

	if (object_value.length == 5)
		return true;
	
	// make sure

	// check if separator is either a'-' or ' '
	if (object_value.charAt(5) != "-" && object_value.charAt(5) != " ")
        return false;

	// check if last 4 digits are a valid integer
	if (object_value.charAt(6) == "-" || object_value.charAt(6) == "+")
        return false;

	return (_CF_checkinteger(object_value.substring(6,10)));
    }


function  _CF_checkInvestor(_CF_this)

    {

    if  (!_CF_hasValue(_CF_this.FirstName, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.FirstName, _CF_this.FirstName.value, "Please enter a first name."))

            {

            return false; 

            }

        }


    if  (!_CF_hasValue(_CF_this.LastName, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.LastName, _CF_this.LastName.value, "Please enter a last name."))

            {

            return false; 

            }

        }





    if  (!_CF_hasValue(_CF_this.Company, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.Company, _CF_this.Company.value, "Please enter a company."))

            {

            return false; 

            }

        }
		
    if  (!_CF_hasValue(_CF_this.Address1, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.Address1, _CF_this.Address1.value, "Please enter an address."))

            {

            return false; 

            }

        }

    if  (!_CF_hasValue(_CF_this.City, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.City, _CF_this.City.value, "Please enter a city."))

            {

            return false; 

            }

        }


    if  (!_CF_hasValue(_CF_this.Zip, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.Zip, _CF_this.Zip.value, "Please enter a zip code."))

            {

            return false; 

            }

        }


    if  (!_CF_checkzip(_CF_this.Zip.value))

        {

        if  (!_CF_onError(_CF_this, _CF_this.Zip, _CF_this.Zip.value, "Please enter a zip code."))

            {

            return false; 

            }

        }
	
	if  (!_CF_hasValue(_CF_this.State, "SELECT" ))

        {

        if  (!_CF_onError(_CF_this, _CF_this.State, _CF_this.State.value, "Please select a State."))

            {

            return false; 

            }

        }

    if  (!_CF_hasValue(_CF_this.Email, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.Email, _CF_this.Email.value, "Please enter an email address."))

            {

            return false; 

            }

        }


    if  (!_CF_hasValue(_CF_this.DayPhone, "TEXT" )) 

        {

        if  (!_CF_onError(_CF_this, _CF_this.DayPhone, _CF_this.DayPhone.value, "Please enter a valid day time phone number."))

            {

            return false; 

            }

        }


    if  (!_CF_checkphone(_CF_this.DayPhone.value))

        {

        if  (!_CF_onError(_CF_this, _CF_this.DayPhone, _CF_this.DayPhone.value, "Please enter a valid day time phone number."))

            {

            return false; 

            }

        }
	
	
	if  (_CF_hasValue(_CF_this.EveningPhone, "TEXT" )) 

        {

    if  (!_CF_checkphone(_CF_this.EveningPhone.value))

        {

        if  (!_CF_onError(_CF_this, _CF_this.EveningPhone, _CF_this.EveningPhone.value, "Please enter a valid evening time phone number."))

            {

            return false; 

            }

        }
		}
		
		
		if  (_CF_hasValue(_CF_this.FaxPhone, "TEXT" )) 

        {

    if  (!_CF_checkphone(_CF_this.FaxPhone.value))

        {

        if  (!_CF_onError(_CF_this, _CF_this.FaxPhone, _CF_this.FaxPhone.value, "Please enter a valid Fax phone number."))

            {

            return false; 

            }

        }
		}
		
		
		
		
		
Display();
_CF_this.checkTest.value=true;
    return true;

    }


//-->


