I have 6 fields for company ownership. They are decimal fields since an owner can have a fractional ownership of a company. However all 6 fields need to add up to 100 if they dont i need to alert them with my validate script. I have included some alert script i am using already so you can see the style i have. If you can help that would be great!
Code:
if (theForm.Pres.value + theForm.Vice_Pres.value + theForm.Sec.value + theForm.chairman.value + theForm.Other.value != 100)
{
alert("Please be sure the ownershp adds to 100 on the \"Sock Owned\" field.");
return (false);
}