| ");
write(" | ");
write("" + UserProfile.lastname + " | ");
write("" + UserProfile.firstname + " | ");
write("" + UserProfile.userid + " |
");
indx++;
}
else {keepfetching = "false";}
}
else {keepfetching = "false";
indx=10;} // needed to prevent page down from printing if 10th row is last one.
}; // end WHILE loop
// If no rows are found, a message is displayed to the user.
if((printhead=="false") && (client.userpagenum==1))
{ Print_No_Found();}
// Since the table on the page contains 10 rows, the 11th row is saved.
// The data from this row becomes the next entry in Scrollkey, and will tell
// the application where to start when the user presses "Page Dn"
if(indx == 11)
{
var nextpage = 0;
nextpage = parseInt(client.userpagenum) + 1;
var inslastname = ""+UserProfile.lastname+"";
var insfirstname = ""+UserProfile.firstname+"";
UserProfile.close();
temppage1 = new TopPage(client.userid, scrolltable, nextpage,
inslastname, insfirstname, zeronum, zeronum);
newpageresult = temppage1.ins_scroll();
// If this row already exists, alpha or numeric key data is updated in case
// a row has been updated since the user last accessed the page.
if(newpageresult !=0)
{temppage1.upd_scroll();};
}
else {UserProfile.close();};
write("