function body_line( ) {
  document.writeln( '<BODY background=pix/SV_Logo_Col_Lo.gif xbgcolor=green bgproperties=fixed xlink=brown xvlink=brown xalink=brown xtext=brown >' ) ;
}

function hr1( ) {
  document.writeln( '<p><hr size=5 width=80% color=maroon><p>' ) ;
}


function me() {
  var here = document.location.pathname ;
  parts = new Array ;
  parts = document.location.pathname.split( "/" ) ;
  parts.reverse() ;
  return parts[0] ;
}

function include_css( ) {
  document.writeln( '<LINK HREF=../../../sv/03/lib/a.css REL=stylesheet TYPE="text/css">' ) ;
}

function big_let( let ) {
   document.writeln( '<font size=7 face=script>' + let + '</font>' ) ;
}

function standard_top( top, L, R, T ) {
  var HRT = '&nbsp;<img src=pix/heart.gif height=35>&nbsp;' ;
  var left = '<img src=' + L + ' align=absmiddle>&nbsp;' ;
  var right = '&nbsp;<img src=' + R + ' align=absmiddle>' ;
//  body_line( ) ;
  document.writeln( '<span class=standardtop1>', T, '</span>' ) ;
  document.writeln( '<table border=0 cellspacing=0 cellpadding=5 align=center><tr><td align=right valign=top>' + left + '</td>' ) ;
  if ( top !== null ) { document.writeln( '<td align=center valign=middle><span class=standardtop1>', top, '</span></td>' ) ; }
  document.writeln( '<td align=left valign=top>' + right +'</td></tr></table>' ) ;
  hr1( ) ;
}
  
function ystandard_top( top, L, R, T ) {
  var HRT = '&nbsp;<img src=pix/heart.gif height=35>&nbsp;' ;
  var left = '<img src=' + L + ' align=absmiddle>&nbsp;' ;
  var right = '&nbsp;<img src=' + R + ' align=absmiddle>' ;
//  body_line( ) ;
  document.writeln( '<dir><i><b><font size=6 face="arial,geneva,sans-serif">', T, '</font></b></i></dir>' ) ;
  document.writeln( '<center>' + left ) ;
  if ( top !== null ) { document.writeln( '<i><b><font face="arial,geneva,sans-serif" size=6 xcolor=brown>', top, '</font></b></i>' ) ; }
  document.writeln( right +' </center>' ) ;
  hr1( ) ;
}
  
function xstandard_top( top ) {
  body_line( ) ;
  document.writeln( '<center>\
</a>\
<table border=0 >\
<tr>\
<a href=index.htm>\
<td background=xxxxx.gif valign=middle align=left width=606 height=52>\
<font size=6 face="textile,cursive" color=brown>&nbsp;Los Alamos Duplicate Bridge Club</font>\
</td></tr></a></table>\
</center>' ) ;
  document.writeln( '<center><font size=8 color=black>&spades; </font><font size=8 color=red>&hearts;</font>' ) ;
  if ( top !== null ) { document.writeln( '<font face="textile,cursive" size=6 xcolor=brown>', top, '</font>' ) ; }
  document.writeln( '<font size=8 color=red>&diams; </font><font size=8 color=black>&clubs;</font>' ) ;
  document.writeln( '</center>' ) ;
   hr1( ) ;
  }
  
function Color( type ) {
  if ( type == 'text' ) { return 'brown' ; }
  if ( type == 'bg' ) { return 'navajowhite' ; }
  if ( type == 'tabletext' ) { return 'white' ; }
}
  
  
function table_override( format, href, text ) {
    document.writeln( '<a href="', href, '">' ) ;
  if ( format == 1 ) {
    document.writeln( '<font face="Times New Roman, Times, serif" size=3><b>',
      text, '</b/></font>' ) ;
  }
  if ( format == 2 ) {
    document.writeln( '<font face="Times New Roman, Times, serif" size=4 color=5A849C><b>',
      text, '</b></font>' ) ;
  }
    document.writeln( '</a>' ) ;
}


function sig_line(){
   hr1() ; document.writeln( '<p><font size=2 xcolor=1A849C color=slateblue>\
   &#169 2001 Kellogg Enterprises<br>\
Terry Kellogg, CCDP, M.A. and<br>\
Marvel Harrison Kellogg, R.D., Ph. D.<BR>\
199 San Ildefonso<BR>\
Los Alamos, NM  87544<BR>\
(505) 662-9200 Phone<br>(505) 662-4044 FAX<br>\
<table border=0 cellpadding=0 cellspacing=0>\
<tr><td ><a href=http://www.liferesources.com><font color=blue size=2><i>www.liferesources.com</a><td>&nbsp;<td><font xcolor=1A849C color=slateblue size=2>web<br>\
<tr><td ><a href="mailto:marvel@liferesources.com"><font color=blue size=2><i>marvel@liferesources.com</a><td>&nbsp;<td><font xcolor=1A849C color=slateblue size=2>email<br>\
<tr><td ><a href="mailto:terry@liferesources.com"><font color=blue size=2><i>terry@liferesources.com</a><td>&nbsp;<td><font xcolor=1A849C color=slateblue size=2>email</table></span>\
', softwire_blurb() ) ;
}

function softwire_blurb(){
  var outside_border_color = 'white' ;
  var inside_border_color = 'darkblue' ;
  var cell_bg_color = 'darkblue' ;
  var font_color = 'white' ;
  return document.writeln('\
<hr size=5 width=80% color=darkblue>\
<table align=right valign=bottom cellpadding=2 border=1 bgcolor=' + inside_border_color + ' bordercolor=' + outside_border_color + ' hspace=0>\
<tr>\
<td align=middle bgcolor=' + cell_bg_color + '>\
<a href=http://www.softwireservices.com/softwire/ title="Visit Softwire\'s site" target=softwire onmouseover="status=\'Visit Softwire\';return true;" onmouseout="status=\'\';return true;">\
<font face=sans-serif color=' + font_color + ' size=1>Web design by <font size=2><b>Softwire</b></font></font></a></table>\
') ;
}

function maxproductions_blurb(){
  var outside_border_color = 'white' ;
  var inside_border_color = 'darkblue' ;
  var cell_bg_color = 'darkblue' ;
  var font_color = 'white' ;
  return document.writeln('\
<hr size=5 width=80% color=darkblue>\
<table align=left valign=bottom cellpadding=2 border=1 bgcolor=' + inside_border_color + ' bordercolor=' + outside_border_color + ' hspace=0>\
<tr>\
<td align=middle bgcolor=' + cell_bg_color + '>\
<a href=http://www.maxproductions.com/softwire/ title="Visit MaxProductions\'s site" target=maxproductions onmouseover="status=\'Visit MaxProductions\';return true;" onmouseout="status=\'\';return true;">\
<font face=sans-serif color=' + font_color + ' size=1>Web design by <font size=2><b>MaxProductions</b></font></font></a></table>\
') ;
}

function softwire_blurb_text(){
  var outside_border_color = 'tan' ;
  var inside_border_color = 'white' ;
  var cell_bg_color = 'oldlace' ;
  var font_color = 'maroon' ;
  return '\
<table cellpadding=2 border=1 bgcolor=' + inside_border_color + ' bordercolor=' + outside_border_color + ' hspace=0>\
<tr>\
<td align=middle bgcolor=' + cell_bg_color + '>\
<a href=http://www.softwireservices.com/softwire/ title="Visit Softwire\'s site" target=softwire onmouseover="status=\'Visit Softwire\';return true;" onmouseout="status=\'\';return true;">\
<font face=sans-serif size=1>Web&nbsp;design&nbsp;by&nbsp;<font size=2><b>Softwire</b></font></font></a></table>\
' ;
}

function maxproductions_blurb_text(){
  var outside_border_color = 'tan' ;
  var inside_border_color = 'white' ;
  var cell_bg_color = 'oldlace' ;
  var font_color = 'maroon' ;
  return '\
<table cellpadding=2 border=1 bgcolor=' + inside_border_color + ' bordercolor=' + outside_border_color + ' hspace=0>\
<tr>\
<td align=middle bgcolor=' + cell_bg_color + '>\
<a href=http://www.maxproductions.com/ title="Visit MaxProductions\'s site" target=maxproductions onmouseover="status=\'Visit Max2O\';return true;" onmouseout="status=\'\';return true;">\
<font face=sans-serif size=1>Art&nbsp;by&nbsp;<font size=2><b>Max<sub>2</sub>O.</b></font></font></a></table>\
' ;
}

function blurb2 () {
  mp = maxproductions_blurb_text() ;
  sw = softwire_blurb_text() ;
  document.writeln( '<hr size=5 width=80% color=darkblue><table width=100%><tr><td align=left width=20%>' + mp + '</td><td width=1%>&nbsp;</td><td align=right width=20%>' + sw + '</td></tr></table>' ) ;
}

function enter_entry( href, title, pic, text ) {
  document.writeln( '\
<td valign=top>\
<center><font face=textile><b><br>', title, '</b></font><p>\
<a href=', href, '><img src=', pic, ' height=200 width=300></a><br>\
</center>', text,
'</td>') ;
}

 function autoselect(frm)
  { 
  var item = frm.CHN.selectedIndex;
    if ( item===0 ) {
      return ;
    }
    choice = frm.CHN.options[item].value;
    if ( choice.charAt(0) == '-' ) {
      return ;
    }
 // alert(">>" + choice);
     frm.submit();
  }

 function autoselect_any()
  { 
    members.submit();
  }

 function autoselect_f1()
  { 
    f1.submit();
  }

 function autoselect_event(frm)
  { 
  var item = frm.event.selectedIndex;
    if ( item===0 ) {
      return ;
    }
    choice = frm.event.options[item].value;
    if ( choice.charAt(0) == '-' ) {
      return ;
    }
 // alert(">>" + choice);
     frm.submit();
  }

 function autoselect_2(frm,fld)
  { 
  var item = frm.fld.selectedIndex;
    if ( item===0 ) {
      return ;
    }
    choice = frm.fld.options[item].value;
    if ( choice.charAt(0) == '-' ) {
      return ;
    }
 // alert(">>" + choice);
     frm.submit();
  }

 function autoselect_not_x(frm,val)
  { 
      if ( val != 'x' ) {
        frm.submit();
      }
  }

 function autoselect2(frm)
  { 
    var item = frm.event.selectedIndex;
    if ( item!==0 ) {
      choice = frm.event.options[item].value;
alert(">>" + item + " " + choice);
      frm.submit();
    }
  }


//-->



function GoBack()
{
  window.history.go(-1) ;
}


function OptOut1( words )
{
// alert(">> " + words );
// alert(">>" + words + " " + f1.opt_out[0] + " "  + f1.opt_out[1] + " "  + f1.opt_out[2] + " "  + f1.opt_out[3] + " "  );
  if ( words == 'All' ) {
    if ( document.f1.opt_out[0].checked == true ) {
      document.f1.opt_out[1].checked = false ;
      document.f1.opt_out[2].checked = false ;
      document.f1.opt_out[3].checked = false ;
      return true ;
    }
  }
  if ( document.f1.opt_out[1].checked == true || document.f1.opt_out[2].checked == true || document.f1.opt_out[3].checked == true ) {
    document.f1.opt_out[0].checked = false ;
    return true ;
  }
}


function OptOut2( words )
{
// alert(">>" + document.f1.opt_out[0].checked );
// alert(">>" + words + " " + f1.opt_out[0] + " "  + f1.opt_out[1] + " "  + f1.opt_out[2] + " "  + f1.opt_out[3] + " "  );
  if ( document.f1.opt_out[1].checked == true || document.f1.opt_out[2].checked == true || document.f1.opt_out[3].checked == true ) {
    document.f1.opt_out[0].checked = false ;
    return true ;
  }
}


function perf_submit( words )
{
   var retval;
   retval = 0 ;
   retval = window.confirm("Are you sure you want to " + words);
   if (retval)
   {
     document.mainform.confirmed.value = 1;
   }
   return retval;
}


function perf_submit2( words )
{
   var retval;
   retval = 0 ;
   retval = window.confirm("Are you sure you want to " + words);
   if (retval)
   return retval;
}


function submit_using_action( form, whereto ){
  document.forms[form].action = whereto ;
  document.forms[form].submit( ) ;
}


function submit_using_action_OK( words, whereto, id ){
// alert(">>" + words + " " + whereto);
  var OK = perf_submit2( words );
// alert(">>" + OK);
  if(OK){
  document.f1.elements['id'].value = id ;
  document.f1.elements['action'].value = whereto ;
  document.f1.submit( ) ;
  }
  return OK ;
}


function omcolor(thetarget, thebgcolor, thepopup)
{
    var retval=thetarget.style.backgroundColor;
    thetarget.style.backgroundColor=thebgcolor;
//    thetarget.style.Color=thefgcolor;
// document.writeln( "<h1>" + thetarget.style.backgroundColor + "</h1>" ) ;
  thetarget.title=thepopup;
  window.status=thepopup;
  return retval;
}





function dispactivity(thetarget, thepopup)
{
// alert(thepopup) ;
  thetarget.title=thepopup;
  window.status=thepopup;
  return true ;
}







// function perf_submit( words )
// {
// //   alert( document.forms[0].elements[12].value ) ;
//    var retval;
//    retval = 0 ;
//    var retval = window.confirm("Are you really sure you want to " + words + "?");
//    if (retval)
//    {
//      document.mainform.confirmed.value = 1;
//    }
//    return retval;
//    return true;
// }
// 

function check_ent( )
{
  if ( document.forms[0].elements[0].value === '' || document.forms[0].elements[1].value === '' ) 
  { 
    alert("Both first and last names are required");
    return false;
  }
//   if ( document.forms[0].elements[2].value == '' ) 
//   { 
//     alert("Both first and last are required");
//     return false;
//   }
  return true;
}


function set_times( tee_times )
{

// set values for subsequent hours and minutes on choosing the first hour or minute value
// minute elements are named minute1, minute2, ...
// hour elements are named hour1, hour2, ...
// the number of tee times is passed to this routine

  var hind = document.assignments.elements['hour1'].selectedIndex ;       // index of initial hour element
  var mind = document.assignments.elements['minute1'].selectedIndex ;     // index of initial minute element
  for ( ind = 1; ind < tee_times; ind++ ) {                               // for requested tee times
    mind += 4 ;                                                           // increment minute index (equiv to 8 mins)
    if ( mind > 29 ) {                                                    // if into next hour
      mind = mind % 30 ;                                                  // recalc minute index
      hind++ ;                                                            // increment hour index
    }
    var enumb = ind + 1 ;                                                 // element number
    document.assignments.elements['hour'+enumb].selectedIndex = hind ;    // set select index for hour elem
    document.assignments.elements['minute'+enumb].selectedIndex = mind ;  // set select index for minute elem
  }
  return true;
}

function senc( last, first )  // submit edit newcomer
{
//     alert(from);
  document.f1.elements["flast"].value = last ;
  document.f1.elements["ffirst"].value = first ;
  document.f1.elements['action'].value = 'edit member' ;
  document.f1.submit( ) ;

  return true ;

}


function senc2( last, first, from, year, month )  // submit edit newcomer
{
//     alert(from);
  document.f1.elements["flast"].value = last ;
  document.f1.elements["ffirst"].value = first ;
  document.f1.elements["from"].value = from ;
  document.f1.elements['action'].value = 'edit member' ;
  document.f1.elements["year"].value = year ;
  document.f1.elements["month"].value = month ;
  document.f1.elements["provider"].value = year ;
  document.f1.submit( ) ;

  return true ;

}


function senc3( id, from, year, month )  // submit edit newcomer
{
//     alert(id);
  document.f1.id.value = id ;
//   document.f1.elements["ffirst"].value = first ;
  document.f1.from.value = from ;
  document.f1.action.value = 'edit_member' ;
  document.f1.alt_action.value = 'edit_member' ;
  document.f1.year.value = year ;
  document.f1.month.value = month ;
  document.f1.provider.value = year ;
  document.f1.state.value = year ;
  document.f1.city.value = year ;
  document.f1.submit( ) ;

  return true ;

}


function senc4( id, from, year, month )  // submit edit newcomer
{
//     alert(id);
  document.f1.elements["id"].value = id ;
//   document.f1.elements["ffirst"].value = first ;
  document.f1.elements["from"].value = from ;
  document.f1.elements['action'].value = 'reinstate_member' ;
  document.f1.elements["year"].value = year ;
  document.f1.elements["month"].value = month ;
  document.f1.elements["provider"].value = year ;
  document.f1.elements["state"].value = year ;
  document.f1.elements["city"].value = year ;
  document.f1.submit( ) ;

  return true ;

}


function click_act( act, pw )  // submit action
{
//     alert(act);
  document.f1.elements['action'].value = act ;
  document.f1.elements["click_act"].value = act ;
  document.f1.elements["password"].value = pw ;
  document.f1.submit( ) ;

  return true ;

}


function join_month_detail( year, month )  // submit join month detail
{
  document.f1.elements["year"].value = year ;
  document.f1.elements["month"].value = month ;
  document.f1.elements["action"].value = 'join month detail' ;
  document.f1.submit( ) ;

  return true ;

}


function graduation_detail( year )  // submit graduation detail
{
  document.f1.elements["year"].value = year ;
  document.f1.elements['action'].value = 'graduation detail' ;
  document.f1.submit( ) ;

  return true ;

}


function location_detail( area )  // submit location detail
{
  document.f1.elements["area"].value = area ;
  document.f1.elements['action'].value = 'location detail' ;
  document.f1.submit( ) ;

  return true ;

}


function edit_mens_rec( Lname, Fname )  // submit edit men's quxiliary record
{
//     alert(Lname + ' ' + Fname);
  document.f2.elements["Lname"].value = Lname ;
  document.f2.elements["Fname"].value = Fname ;
  document.f2.submit( ) ;

  return true ;

}


function from_state_detail( state )  // submit state detail
{
//     alert(state);
  document.f1.elements["state"].value = state ;
//   document.f1.elements["from"].value = from ;
  document.f1.elements['action'].value = 'state_detail' ;
  document.f1.submit( ) ;

  return true ;

}


function from_city_detail( state, city )  // submit city detail
{
//     alert(state);
  document.f1.city.value = city ;
  document.f1.state.value = state ;
  document.f1.action.value = 'city_detail' ;
//   document.f1.elements['action'].value = 'city_detail' ;
  document.f1.submit( ) ;

  return true ;

}


function signed_up_detail( year )  // submit state detail
{
//     alert(state);
  document.f1.elements["year"].value = year ;
  document.f1.elements['action'].value = 'signed_up_detail' ;
  document.f1.submit( ) ;

  return true ;

}


function service_provider_detail( provider )  // submit location detail
{
  document.f1.elements["provider"].value = provider ;
  document.f1.elements['action'].value = 'provider detail' ;
  document.f1.submit( ) ;

  return true ;

}


function kick_stats(pw)  // submit kick stats
{
//     alert('kick stats ' + document.f1.password.value );
//   document.stats.password.value = document.f1.password.value ;
//   document.f1.elements['action'].value = 'graduation detail' ;
  document.stats.submit( ) ;

  return true ;

}


function kick_nav( from )  // submit kick nav
{
    alert('kick nav ' + from);
  document.nav.elements["nfrom"].value = from ;
//   document.f1.elements['action'].value = 'graduation detail' ;
//   document.nav.submit( ) ;
  document.nav.submit( ) ;

  return true ;

}


function kick_nav2( from )  // submit kick nav
{
    alert('kick nav ' + from);
  document.nav.elements["nfrom"].value = from ;
//   document.f1.elements['action'].value = 'graduation detail' ;
//   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
//   response.setHeader("Pragma","no-cache"); //HTTP 1.0
//   response.setDateHeader ("Expires", 0); //prevents caching on a proxy server as well
  document.nav.submit( ) ;

  return true ;

}


function join(  )  // submit new member application
{
//     alert('xxx' + document.f1.elements['first'].value);
  var txt = '' ;
  if (document.f1.first.value == '') txt = '\nFirst name' ; 
  if (document.f1.last.value == '') txt = txt + '\nLast name' ; 
  if (document.f1.address.value == '') txt = txt + '\nAddress' ; 
  if (document.f1.city.value == '') txt = txt + '\nCity' ; 
  if (document.f1.zip.value == '') txt = txt + '\nZIP' ; 
  if (document.f1.phone.value == '') txt = txt + '\nPhone' ; 
  if (document.f1.email.value == '') txt = txt + '\nEmail' ; 
  if (document.f1.from_city.value == '') txt = txt + '\nMoved from city' ; 
//   if (document.f1.from_state.value == '') txt = txt + '\nMoved from state' ; 
//   if (document.f1.emerg_contact.value == '') txt = txt + '\nEmergency Contact Name' ; 
//   if (document.f1.emerg_rel.value == '') txt = txt + '\nEmergency Contact Relationship' ; 
//   if (document.f1.emerg_phone.value == '') txt = txt + '\nEmergency Contact Phone' ; 
  if (document.f1.sign_waiver.checked == false) txt = txt + '\nMust Check Liability Waiver Agreement' ; 
  if ( txt != '' ) {
    alert( "Data required for the following item(s):" + txt ) ;

    return false ;
  }
  return true ;  // all fields filled

}










function jointest( memadd )  // test required fields
{
  var primgender = document.f1.prim[0].checked || document.f1.prim[1].checked ;
  var secgender = document.f1.sec[0].checked || document.f1.sec[1].checked ;
//     alert('xxx ' + memadd);
  var cnt = 1 ;

  if (document.f1.first.value == '') { cnt = 0 ; } 
  if (document.f1.last.value == '') { cnt = 0 ; } 
  if (document.f1.address.value == '') { cnt = 0 ; } 
  if (document.f1.city.value == '') { cnt = 0 ; } 
  if (document.f1.zip.value == '') { cnt = 0 ; } 
  if (document.f1.phone.value == '') { cnt = 0 ; } 
  if (document.f1.email.value == '' && memadd != 1) { cnt = 0 ; } 
  if (document.f1.from_city.value == '') { cnt = 0 ; } 
  if (document.f1.prim.value == '') { cnt = 0 ; } 
  if (document.f1.sign_waiver.checked == false && memadd != 1) { cnt = 0 ; } 
  if (primgender == false) { cnt = 0 ; } 
  
  if (document.f1.first2.value != '') { 
    document.getElementById('trlast2').className = "uncollapse" ;
    document.getElementById('trcell2').className = "uncollapse" ;
    document.getElementById('tremail2').className = "uncollapse" ;
    document.getElementById('trgender2').className = "uncollapse" ;
    if (secgender == false ) { cnt = 0 ; }
  } else {
    document.getElementById('trlast2').className = "collapse" ;
    document.getElementById('trcell2').className = "collapse" ;
    document.getElementById('tremail2').className = "collapse" ;
    document.getElementById('trgender2').className = "collapse" ;
  }

  if ( cnt > 0 ) { document.f1.action.className = 'sbut' ;
    document.f1.action.disabled=false ;
    return true;
  } 
  document.f1.action.className = 'sbut_50' ;
  document.f1.action.disabled=true ;
  return false ;

}













function jointest2(  )  // test required fields for membership officer entry
{
  var primgender = document.f1.prim[0].checked || document.f1.prim[1].checked ;
  var secgender = document.f1.sec[0].checked || document.f1.sec[1].checked ;
//   alert('xxx ' + secgender);
  var cnt = 1 ;


  if (document.f1.first.value == '') { cnt = 0 ; } 
  if (document.f1.last.value == '') { cnt = 0 ; } 
  if (document.f1.address.value == '') { cnt = 0 ; } 
  if (document.f1.city.value == '') { cnt = 0 ; } 
  if (document.f1.zip.value == '') { cnt = 0 ; } 
  if (document.f1.phone.value == '') { cnt = 0 ; } 
  if (document.f1.from_city.value == '') { cnt = 0 ; } 
  if (primgender == false) { cnt = 0 ; } 
  if (secgender == false && document.f1.first2.value != '') { cnt = 0 ; } 
  if (document.f1.first2.value != '') { document.getElementById('secgender').style.color = 'maroon'; }
  if (document.f1.first2.value == '') { document.getElementById('secgender').style.color = 'darkblue'; }
  if (document.f1.first2.value == '') { document.f1.sec[0].checked = false ; document.f1.sec[1].checked = false ; }
//   if ( cnt > 0 ) { document.f1.action.style.visibility = 'visible' ;
  if ( cnt > 0 ) { document.f1.action.className = 'sbut' ;
    document.f1.action.disabled=false ;
    return true;
  } 
//   document.f1.action.style.visibility = 'hidden' ;
  document.f1.action.className = 'sbut_50' ;
  document.f1.action.disabled=true ;
  return false ;

}













function entry_check( fld )  // check entry validity
{
//   alert(document.f1.elements[fld].value);
//   alert('>> ' + fld);

  if ( fld == 'last' ) {
    if ( document.f1.elements[fld].value != '' ) {
      if ( document.f1.first.value == '' ) {
        alert( 'First member first name must be defined' ) ;
        return false ;
      }
    }
  }

  if ( fld == 'last2' ) {
    if ( document.f1.elements[fld].value != '' ) {
      if ( document.f1.first2.value == '' ) {
        alert( 'Second member first name must be defined' ) ;
        return false ;
      }
    }
  }



}




function a_m_name( fld )  // activity member name
{
//   var ind = document.f1.elements["id " + fld].selectedIndex;
//   var names = document.f1.current_names[document.f1.elements["id " + fld].selectedIndex].value ;
  document.f1.elements["name " + fld].value = document.f1.current_names[document.f1.elements["id " + fld].selectedIndex].value;
  return true ;
}




function locater( id )  // locate an address
{
//     alert(id);
//   var action = 'locate' ;
  document.f1.id.value = id ;
  document.f1.newaction.value = 'locate' ;
  document.f1.submit( ) ;

  return true ;

}


// function upload_file( )  // upload file
// {
// // works everywhere, requires form to be set up in script
//   document.upload.action = 'http://fortnet.org/newcomer/cgi-bin/fcncnl_upload2.cgi';
//   document.upload.target = 'content';
//   document.upload.submit( ) ;
//   return true ;
// }
// 
// 




function ext_in_content( url, arg )  // execute external script in content frame
{
// works everywhere, requires form to be set up in script
// alert(url);
  document.ext.action = url;
  document.ext.target = 'content';
  document.ext.activity.value = arg ;
  document.ext.submit( ) ;
  return true ;
}





function ck_all( ck, item )  // check, uncheck or switch all checkboxes
{
  for (i=0; i<document.f1.elements[item].length; i++){
    cur = document.f1.elements[item][i].checked ;
    if ( ck == 0 )  document.f1.elements[item][i].checked = false ;  // uncheck
    if ( ck == 1 )  document.f1.elements[item][i].checked = true ;  // check
    if ( ck == 2 && cur == true )  document.f1.elements[item][i].checked = false ;  // switch
    if ( ck == 2 && cur == false )  document.f1.elements[item][i].checked = true ;  // switch
  }
  return true ;
}





// 
// 
// function upload_nc_newsletter( )  // upload newcomers newsletter
// {
// // doesn't work on PCs - why?
//   var submitForm = document.createElement("FORM");
//   submitForm.action = 'http://fortnet.org/newcomer/cgi-bin/fcncnl_upload2.cgi';
//   submitForm.target = 'content';
//   submitForm.submit() ;
//   return true ;
// }
// 
// 
// function upload_alum_nl( )  // upload alum newsletter
// {
// // works everywhere, requires form to be set up in script
//   document.upload.action = 'http://fortnet.org/newcomer/cgi-bin/alum_upload.cgi';
//   document.upload.target = 'content';
//   document.upload.submit( ) ;
//   return true ;
// }


//--> 
