Today's Activity
namecursor = database.cursor("select name from employee where ssn = " + client.ssn + "", true); namecursor.next();
Current Enrollee:write(namecursor.name);


This form provides HR with your reason for using the Benefits Enrollment System today. For example, if you enrolling for the first time, choose the radio buttons corresponding to "Enrollment" and "1. New Enrollee." /* Check to make sure we are connected to the database before allowing access to the home page. If not connected, go connect and initialize; otherwise, welcome the user.\ */ if(!database.connected()) redirect("init.htm"); trans_cursor = database.cursor("select * from transaction where ssn = " + client.ssn + "", true); trans_cursor.next(); if (trans_cursor.ssn != client.ssn) { client.action = "insert"; } else { client.action = "update"; }
} else { Enrollment } } else { Termination } } else { Change }
if (trans_cursor.trans_type == "e") { Enrollment if (trans_cursor.trans_type == "t") { Termination if (trans_cursor.trans_type == "c") { Change
if (trans_cursor.trans_desc == "New") { 1. New Enrollee } else { 1. New Enrollee }
if (trans_cursor.trans_desc == "Rehired") { 2. Rehired or Reinstatement or Re-enrollment } else { 2. Rehired or Reinstatement or Re-enrollment }
if (trans_cursor.trans_desc == "Cobra") { 3. COBRA } else { 3. COBRA }

Effective Date
if (trans_cursor.e_effective_date != null) { } else { }

Qualifying Event Date if (trans_cursor.e_qual_event != null) { } else { }
if (trans_cursor.trans_desc == "Terminating Employment") { 1. Terminating Employment } else { 1. Terminating Employment }
if (trans_cursor.trans_desc == "Layoff/Leave of Absence") { 2. Layoff/Leave of Absence } else { 2. Layoff/Leave of Absence }
if (trans_cursor.trans_desc == "Cancelling Coverage") { 3. Cancelling Coverage } else { 3. Cancelling Coverage }
if (trans_cursor.trans_desc == "Primary Care Provider") { 1. Primary Care Provider } else { 1. Primary Care Provider }
if (trans_cursor.trans_desc == "COBRA Continuation") { 2. COBRA Continuation } else { 2. COBRA Continuation }

Effective Date
if (trans_cursor.c_effective_date != null) { } else { }

Qualifying Event Date
if (trans_cursor.c_qual_event != null) { } else { }

if (trans_cursor.trans_desc == "Add Dependent") { 3. Add Dependent } else { 3. Add Dependent }
if (trans_cursor.trans_desc == "Remove Dependent") { 4. Remove Dependent } else { 4. Remove Dependent }
if (trans_cursor.trans_desc == "Other") { 5. Other } else { 5. Other }

Please Describe "Other" if (trans_cursor.other_desc != null) { } else { }

Return to Main Menu