/* Below we check to see what usertype is trying to perform a search, and we dynamically construct this frameset depending on what kind of user type we have. This technique allows us to reuse this single FRAMESET document for either type of search. */ if (client.usertype == "seeker") { securityCheck(client.valid, client.usertype, "seeker", "../login.htm?type=seeker"); title = "Match Your Career Goals to Jobs"; querySource = "jobsearc.htm"; resultSource = "sinit.htm"; } else if (client.usertype == "employer") { securityCheck(client.valid, client.usertype, "employer", "../login.htm?type=seeker"); title = "Match Desired Qualities with Job Seekers"; querySource = "seeksear.htm"; resultSource = "einit.htm"; } else redirect("../login.htm"); // otherwise, we don't know what kind of user they are. write("\n"); write(""); write(title + "\n"); write("\n");