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_checkform(_CF_this)
{
if (!_CF_hasValue(_CF_this.Account, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Account, _CF_this.Account.value, "Account number: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Firstname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Firstname, _CF_this.Firstname.value, "First Name: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Lastname, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Lastname, _CF_this.Lastname.value, "Last Name: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Currentmailingaddress, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Currentmailingaddress, _CF_this.Currentmailingaddress.value, "Current Mailing Address: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Currentcity, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Currentcity, _CF_this.Currentcity.value, "Current City: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Currentzip, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Currentzip, _CF_this.Currentzip.value, "Current Zip Code: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Newmailingaddress, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Newmailingaddress, _CF_this.Newmailingaddress.value, "New Mailing Address: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Newcity, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Newcity, _CF_this.Newcity.value, "New City: this box can not be blank"))
{
return false;
}
}
if (!_CF_hasValue(_CF_this.Newzip, "TEXT" ))
{
if (!_CF_onError(_CF_this, _CF_this.Newzip, _CF_this.Newzip.value, "New Zip: this box can not be blank"))
{
return false;
}
}
return true;
}
//-->
 |
Ph: 320-796-1155 or 1-800-551-4951
Fx: 320-796-0620
E-Mail: info@kpcoop.com |
|