/*f241-4.js03/16/05 jco -- Copied from new Elink 241-1.js */<!-- --><HR><H1>This Page Requires JavaScript</H1><!-- -->Your web browser is not capable of running JavaScript programs,<!-- -->So you will not be able to use this page.  Please upgrade<!-- -->to the latest version of Mozilla FireFox, Netscape Navigator,<!-- -->or Microsoft Internet Explorer.<!-- --><HR>/* Sets the focus after a page reload to the last field the user was on */function setFocus() {    document.forms[0].elements[document.forms[0].lastfield.value].focus();}/* Saves position of scrollbar on a submit so that the user stays at whatever point they were at in    the form.  Handy for items that are refreshed after selecting different values.*/function saveScrollCoordinates() {  var scrOfX = 0, scrOfY = 0;  if( typeof( window.pageYOffset ) == 'number' ) {    //Netscape compliant    scrOfY = window.pageYOffset;    scrOfX = window.pageXOffset;  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {    //DOM compliant    scrOfY = document.body.scrollTop;    scrOfX = document.body.scrollLeft;  } else if( document.documentElement &&      ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {    //IE6 standards compliant mode    scrOfY = document.documentElement.scrollTop;    scrOfX = document.documentElement.scrollLeft;  }   document.forms[0].scrollx.value = scrOfX;   document.forms[0].scrolly.value = scrOfY;}function update_field(t_list,t_field,delim,codeonly) {/* function: update_field   purpose:  This function is responsible for populating the specified field (t_field) from the             specified list (t_list) using the specified delimiter (delim).   Does not allow duplicate             values to be added to the field.*/        var has_text = t_field.value;        if (has_text.length > 0) { delimiter = delim + " "; }        else { delimiter = "";}        if (codeonly != "true")  { the_select = t_list.options[t_list.selectedIndex].text; }        else { the_select = t_list.options[t_list.selectedIndex].value; }         if (t_field.value.indexOf(the_select) == -1)  {           t_field.value = t_field.value + delimiter + the_select;         }         }/* Checks to see if an access limitation is OUO and adds OUO to the front of the field IF it's not already   there.*/function checkaccesslims(limval, t_field) {        if (t_field.value.indexOf("OUO") != 0)  {            if (limval == 'ECI' || limval == 'OTHR' || limval == 'PROT' || limval == 'PDOUO' || limval == 'SSI' || limval == 'PROP'  || limval == 'PAT' || limval == 'AT') {              if (t_field.value != "")                  t_field.value = "OUO; " + t_field.value;              else                  t_field.value = "OUO; " + limval;            }           } } 