<!--  Adapted from many windows. Open a fixed size window. 05/20/2005 -->
function winOpen(urlValue, winName) {
   win = window.open(urlValue,winName,'width=750,height=600,status=yes,resizable=yes,scrollbars=yes');
}

<!--  Adapted from many windows. Pass in the Form Name    05/20/2005 -->
function SubmitForm (fname, subType) {
  document.forms[fname].subType.value = subType;
  //alert('submitted ' + fname + ' ' + subType);
  document.forms[fname].submit();
}

<!-- Open a centered window  -->
function winCenOpen(theURL, Name, popW, popH, scroll) {
  var winleft = (screen.width - popW) / 2;
  var winUp = (screen.height - popH) / 2;

  winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable';
  Win = window.open(theURL, Name, winProp);
  if (parseInt(navigator.appVersion) >= 4) { 
     Win.window.focus();
  }
}  // end winCenOpen

// PROBABLY NOT USED ???????????
function runEmail(urlValue) {
   win = window.open(urlValue,'Comments','width=525,height=500,status=yes,resizable=yes,scrollbars=yes');
  }

<!-- Open the help window -->
function helpWindow(htmlFileName) {
   win = window.open(htmlFileName,'ipasshelp','width=450,height=600,status=yes,resizable=yes,scrollbars=yes');
   return;
}

function PrintWin(urlValue, winName) { 
  var win = window.open(urlValue,winName,'width=900,height=800,status=yes,resizable=yes,scrollbars=yes'); 
}

<!-- For pulldowns, lists,removes entries -->
function removeSelectedValue(theField,theValue) {
var LaField;
LaField = document.getElementById(theField);


 var i=0;                                                                                                                                                                                                                                      
    for (var j=0, l=LaField.length;j<l;j++) {           
     if (LaField.options[j].value==theValue){
       if (LaField.options[j].selected){      
           LaField.options[j].selected=false;
       }            
     }
    }
}
function showSelectValue(theField,theDiv,theForm) {   
                                                                                                                                                                                             
var selectDisplay="";   
var LaField;
LaField = document.getElementById(theField);                                                                                                                                                                                                                                                                                                                                                                                                                                                            
 var i=0;                                                                                                                                                                                                                                      
    for (var j=0, l=[LaField.length];j<l;j++) {           
     if (LaField.options[j].selected){
     selectDisplay+='<a href="javascript:removeSelectedValue(';
       // selectDisplay+='document.forms[';
       // selectDisplay+="'";
       // selectDisplay+=theForm;
       // selectDisplay+="'";       
       // selectDisplay+='].elements[';
       selectDisplay+="'";
       selectDisplay+=LaField.name;
       selectDisplay+="'";
       // selectDisplay+=']';    

       selectDisplay+=',';
       selectDisplay+="'";
       selectDisplay+=LaField.options[j].value;
       selectDisplay+="'";
       selectDisplay+='); ';       
       selectDisplay+=' showSelectValue(';
       selectDisplay+="'";
       selectDisplay+=LaField.name;
       selectDisplay+="','";
       selectDisplay+=theDiv;       
       selectDisplay+="','";
       selectDisplay+=theForm;       
       selectDisplay+="'); ";
      selectDisplay+='">X</a> ';
      selectDisplay+=LaField.options[j].text; 
      selectDisplay+='<br />';                                                                                                                                                                   
     }        
    }
  document.getElementById(theDiv).innerHTML = selectDisplay; 
}
