return false;
}
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.name, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.name, _CF_this.name.value, "You must enter your 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.phone, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.phone, _CF_this.phone.value, "You must enter your Phone Number"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.address, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.address, _CF_this.address.value, "You must enter your Address"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.state, "SELECT" ))
{
if (!_CF_onError(_CF_this, _CF_this.state, _CF_this.state.value, "must select a state"))
{
return false;
}
}
return true;
}
//-->