Need Logic Help

Need Logic Help

Hi..
 
Any help is greatly appreciated.
 
I want to do folloiwngs:
 
1. id.admin1 and id.admin2 has all access to forms/views
 
2. if rg = Canada and if id if not equal to id.canada or id is not equal to id.admin1 or id is not equal to id.admin2 then
       alert :  un authorized ID. You MUST have ID =  id.canada or id.admin1 or id.admin2 for rg = canada
 
 
 
3. if rg = west and if id if not equal to id.west or id is not equal to id.admin1 or id is not equal to id.admin2 then
       alert :  un authorized ID. You MUST have ID =  id.west or id.admin1 or id.admin2 for rg = west
 
4. if rg = south and if id if not equal to id.south or id is not equal to id.admin1 or id is not equal to id.admin2 then
       alert :  un authorized ID. You MUST have ID =  id.south or id.admin1 or id.admin2 for rg = south
 
 
5. I am also checking tje duplicared record
 
6. Checking the negative in attendence field
 
7. in above condition faild, just move forward with some calculation of fileds.
 
 
 
 
I put the code described below in ON ADD --> VALIDATION
I did not get any error but logic does not work.
 
 

=========================

if (((zoho.loginuser != "id.admin1") || (zoho.loginuser != "id.admin2") || (zoho.loginuser != "id.canada")) && (input.rg == "Canada"))

{

alert "ALERT: Need Canada ID to submit report.";

cancel submit;

}

else if (((zoho.loginuser != "id.admin1") || (zoho.loginuser != "id.admin2") || (zoho.loginuser != "id.west")) && (input.rg == "West"))

{

alert "ALERT: Need West ID to submit report.";

cancel submit;

}

else if (((zoho.loginuser != "id.admin1") || (zoho.loginuser != "id.admin2") || (zoho.loginuser != "id.south")) && (input.rg == "South"))

{

alert "ALERT: Need South ID to submit report.";

cancel submit;

}

else if (count(report_form [ ((yr == input.yr) && (mm == input.mm) && (rg == input.rg) && (cn == input.cn) && (gr == input.gr) && (wk == input.wk))]) > 0)

{

alert "ALERT: Record duplicate.";

cancel submit;

}

else if ((input.aatn < 0) || (input.batn < 0))

{

alert " Attendence can not be negative.";

cancel submit;

}

else

{

if (input.cn == "Atlanta")

{

input.cntyp = "A";

}

else if (input.cn == "Charlotte")

{

input.cntyp = "B";

}

}