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){
			obj.focus();
      		return false;
		}
    	else 
      		return true;
    }
    else if (obj_type == "SELECT")
	{
        for (i=0; i < obj.length; i++)
	   	{
			if (i > 0 ){
				if (obj.options[i].selected)
					return true;
			}
		}
		obj.focus();
       	return
	}
    else if (obj_type == "SINGLE_value_RADIO" || obj_type == "SINGLE_value_CHECKBOX")
	{
		if (obj.checked)
			return true;
		else
       		return false;	
	}
    else if (obj_type == "RADIO" || obj_type == "CHECKBOX")
	{
        for (i=0; i < obj.length; i++)
	    	{
		if (obj[i].checked)
			return true;
		}
       	return false;	
	}
}

function  _CF_checkCFForm_1(_CF_this)
    {
    if  (!_CF_hasValue(_CF_this.fname, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.fname, _CF_this.fname.value, "You must enter your first name."))
            {
            return false; 
            }
        }
	if  (!_CF_hasValue(_CF_this.lname, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.lname, _CF_this.lname.value, "You must enter your last name."))
            {
            return false; 
            }
        }
    if  (!_CF_hasValue(_CF_this.email, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.email, _CF_this.email.value, "You must enter your email address."))
            {
            return false; 
            }
        }
	if  (!_CF_hasValue(_CF_this.address1, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.address1, _CF_this.address1.value, "You must enter your address."))
            {
            return false; 
            }        
		}
    if  (!_CF_hasValue(_CF_this.City, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.City, _CF_this.City.value, "You must enter a city."))
            {
            return false; 
            }
        }
    if  (!_CF_hasValue(_CF_this.state, "SELECT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.state, _CF_this.state.value, "You must enter your State."))
            {
            return false; 
            }
        }
	if  (!_CF_hasValue(_CF_this.Zip, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.Zip, _CF_this.Zip.value, "You must enter your Zip Code."))
            {
            return false; 
            }
        }		
	if  (!_CF_hasValue(_CF_this.County, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.County, _CF_this.County.value, "You must enter your County."))
            {
            return false; 
            }
        }		
	if  (!_CF_hasValue(_CF_this.homephone, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.homephone, _CF_this.homephone.value, "You must enter your Home Phone number."))
            {
            return false; 
            }
        }
	if  (!_CF_hasValue(_CF_this.currentcows, "TEXT" )) 
        {
        if  (!_CF_onError(_CF_this, _CF_this.currentcows, _CF_this.currentcows.value, "You must enter your current number of cows."))
            {
            return false; 
            }
        }					
    return true;
    }