Validation of 2 conditions fails when 1 is a look-up field

Validation of 2 conditions fails when 1 is a look-up field

To see the whole discussion see: http://help.zoho.com/portal/en/community/topic/2nd-condition-being-ignored-in-validation-script

I have a form with 2 fields "Region" and "New Region"

Region is a look-up field from another form and New Region is a Single entry text field. When I use the following script to validate that there are entries in both, the first condition is evaluated and submit is canceled. However the second condition is not and the form will process even when the second field is null or empty.

if ((input.Region  ==  null)  &&  (input.New_Region  ==  null))
{
    alert "enter a region";
    cancel submit;
}

Note, the below doesn't work either:
if ((input.Region  ==  null)  &&  (input.New_Region  ==  ""))
{
    alert "enter a region";
    cancel submit;
}

  1. If I change both fields to single line text fields, the validate statement will work properly whether null or "" is used for either condition.
  2. When the Region field is a look-up field, null has to be used for the condition
  3. When the Region field is a look-up field, the if statement is evaluated for the look-up field but not the text field