   mailstring   = "mail";
   tostring     = "to:";
   namestring   = "femara";
   atsign       = "@";
   domainstring = "boxboro.org";

function emailstr(dest,domainstring) {
      document.write('<A class=email HREF='+mailstring+tostring+dest+atsign+domainstring+'>'+dest+atsign+domainstring+'</A>');
}


function SendEmail(addr,displaytext) {
if (displaytext == "") displaytext = addr+atsign+domainstring;
      document.write('<a class=email href='+mailstring+tostring+addr+atsign+domainstring+'>'+displaytext+'</a>');
}


function ShowAlert(n) {
//	if (n==1) alert("This spreadsheet will not reflect status changes you have just made unless you have clicked on 'Save Changes'.");
	}


function femaraFormat(pagename) {

if (pagename=='home') class_home = 'now'; else class_home = '';
if (pagename=='schl') class_schl = 'now'; else class_schl = '';
if (pagename=='meet') class_meet = 'now'; else class_meet = '';
if (pagename=='regf') class_regf = 'now'; else class_regf = '';
if (pagename=='abou') class_abou = 'now'; else class_abou = '';
if (pagename=='repe') class_repe = 'now'; else class_repe = '';
if (pagename=='echo') class_echo = 'now'; else class_echo = '';
if (pagename=='foxh') class_foxh = 'now'; else class_foxh = '';
if (pagename=='exam') class_exam = 'now'; else class_exam = '';
if (pagename=='nltr') class_nltr = 'now'; else class_nltr = '';
if (pagename=='mapp') class_mapp = 'now'; else class_mapp = '';
if (pagename=='phot') class_phot = 'now'; else class_phot = '';
if (pagename=='pho2') class_phot = 'now'; else class_phot = '';
if (pagename=='cont') class_cont = 'now'; else class_cont = '';

if (0 && pagename!='newhome' && pagename!='schl' && pagename!='regf' && pagename!='regcfm' && pagename!='pstt') {
document.write('<TABLE align=center bgcolor=blue border=0 cellspacing=0 cellpadding=0 width=900');
document.write('  <TR><TD align=center class=logo colspan=7><IMG ALT="2012 Convention Logo" SRC=/images/maintitle.png></TD></TR>');

  document.write('  <TR class=nav>');
  document.write('<TD align=center class=nav'+class_home+'><A CLASS=nav'+class_home+' HREF=/index.html><ACRONYM title="FEMARA"><B>Boxboro! Home</B></ACRONYM></TD>');
  document.write('<TD class=nav'+class_schl+'><A CLASS=nav'+class_schl+' HREF=/scholarships.html><B>Scholarships</B></TD>');
  document.write('<TD class=nav'+class_abou+'><A CLASS=nav'+class_abou+' HREF=/about.html><B>About FEMARA</B></TD>');
  document.write("<TD class=nav"+class_phot+"><A CLASS=nav"+class_phot+" HREF=/photogallery><B>Photo Gallery</B></TD>");
  document.write('<TD class=nav'+class_cont+'><A CLASS=nav'+class_cont+'   HREF=/contact.html><B>Contact us</B></A></TD>');
  document.write('<TD class=nav'+class_mapp+'><A CLASS=nav'+class_mapp+' HREF="http://groups.google.com/group/boxboro"><B>Forum</B></TD>');
<!--  document.write("<TD class=navh"+class_regf+"><A CLASS=nav"+class_regf+" HREF=/reg.html><B>Online Tickets</B><BR><FONT SIZE=2>through August 20*</FONT></TD>");-->
document.write('</TR></TABLE>');
if (pagename=='phot') femaraPhotoHeader(1);
if (pagename=='pho2') femaraPhotoHeader(2);
} else {
  document.write('<TABLE class=noborder align=center background=/2012/images/background.png border=0 cellspacing=0 cellpadding=0 width=900');
  document.write('<TR><TD class=logo colspan=7><IMG ALT="2012 Convention Logo" SRC=/images/maintitle.png></TD></TR>');
  document.write('<TR>');
  document.write('<TD class=nav'+class_home+'><A HREF=/index.html><IMG width=158 SRC=/images/button-home.png onMouseOver="this.src=\'/images/button-home-over.png\'" onmouseout="this.src=\'/images/button-home.png\'"></TD>');
  document.write('<TD class=nav'+class_schl+'><A HREF=/scholarships.html><IMG width=158 SRC=/images/button-scholarships.png onMouseOver="this.src=\'/images/button-scholarships-over.png\'" onmouseout="this.src=\'/images/button-scholarships.png\'"></TD>');
  document.write('<TD class=nav'+class_abou+'><A HREF=/about.html><IMG width=158 SRC=/images/button-about.png  onMouseOver="this.src=\'/images/button-about-over.png\'" onmouseout="this.src=\'/images/button-about.png\'"></TD>');
  document.write('<TD class=nav'+class_abou+'><A HREF=/photogallery><IMG width=158 SRC=/images/button-photo.png  onMouseOver="this.src=\'/images/button-photo-over.png\'" onmouseout="this.src=\'/images/button-photo.png\'"></TD>');
  document.write('<TD class=nav'+class_cont+'><A HREF=/contact.html><IMG width=158 SRC=/images/button-contact.png onMouseOver="this.src=\'/images/button-contact-over.png\'" onmouseout="this.src=\'/images/button-contact.png\'"></A></TD>');
  document.write('<TD class=nav'+class_mapp+'><A HREF=http://groups.google.com/group/boxboro><IMG width=158 SRC=/images/button-forum.png onMouseOver="this.src=\'/images/button-forum-over.png\'" onmouseout="this.src=\'/images/button-forum.png\'"></TD>');
<!--  document.write("<TD class=navh"+class_regf+"><A CLASS=nav"+class_regf+" HREF=/reg.html><B>Online Tickets</B><BR><FONT SIZE=2>through August 20*</FONT></TD>");-->
document.write('</TR></TABLE>');
if (pagename=='phot') femaraPhotoHeader(1);
if (pagename=='pho2') femaraPhotoHeader(2);
}

					
}

function femaraConclude() {
document.write('</TD>');
document.write('</TR>');
document.write('<TR><TD class=logo align=center colspan=3><BR><BR><FONT SIZE=1>&copy 2012 FEMARA, Inc.</TD></TR>');
document.write('</TABLE>');
}


function saveid(type) {
	ID = document.mainform.CALL.value;
	if (ID.length<4) {
	   alert('Please enter a valid amateur callsign');
	   return false;
	}
	document.cookie = "ID="+ID+';expires='+expireDate.toGMTString();
	if (type==0) document.mainform.FUNCTION.value='login';
	if (type==1) document.mainform.FUNCTION.value='resend';
	document.mainform.submit();
	return true;
}

function femaraPhotoHeader(n) {
	document.write( "<TABLE width=900 align=center cellspacing=0><TR><TD class=logo><CENTER>"+
			"<A HREF=/photogallery/1996>1996</A> | "+
			"<A HREF=/photogallery/1998>1998</A> | "+
			"<A HREF=/photogallery/2000>2000</A> | "+
			"<A HREF=/photogallery/2002>2002</A> | "+
			"<A HREF=/photogallery/2004>2004</A> | "+
			"<A HREF=/photogallery/2006>2006</A> | "+
			"<A HREF=/photogallery/2008>2008</A> | "+
			"<A HREF=/photogallery/2010>2010</A>   "+
			"</CENTER><BR></TD></TR></TABLE>");
	if (window.year === undefined) return; 
	document.write('<TABLE border=0 align=center width=900 cellspacing=0>');
	document.write('<TR><TD class=logo>');
	document.write('<HR>');
	document.write('<FONT SIZE=6>Photos from Boxboro '+year+'</FONT><BR>');
	if (year==2010) document.write('All photos by WO1N');
	document.write('<BR>');
	if (year==2006) {
		document.write('<A HREF="/photogallery/2006/N2QQS">Friday by N2QQS</A><BR>');
		document.write('<A HREF="/photogallery/2006/W1KQ">Saturday by W1KQ</A><BR>');
		document.write('<A HREF="/photogallery/2006/N1VUQ">Saturday by N1VUQ</A><BR>');
		document.write('<A HREF="/photogallery/2006/WO1N">Saturday/Sunday by WO1N</A><BR>');
	}
	if (year==2008) {
		document.write('<A HREF="/photogallery/2008/K1IW">Friday/Saturday by K1IW</A><BR>');
		document.write('<A HREF="/photogallery/2008/WO1N">Saturday by WO1N</A><BR>');
		document.write('<A HREF="/photogallery/2008/N1VUQ">Saturday/Sunday by N1VUQ</A><BR>');
	}
	document.write('<BR><HR>');
	if (author!='' && subject !='')	document.write('<FONT SIZE=+2>'+subject+' - Photos by '+author+'</FONT><BR>');
	if (n==1) document.write('<i>Click any thumbnail to view the full size photo.</i>');
	if (n==2) {
		document.write('<i>Click the arrow buttons to operate the slide show manually.</i><BR>');
		document.write('<i>Place your mouse pointer over the image to temporarily suspend the show</I><BR>');
		document.write('<i>Click the image to see a full size version of it</i><BR><BR>');
	}
}



function NewWin(newloc,w,h) {
	var mywindow = window.open('http://www.boxboro.org/'+newloc,'Photo','width='+w+',height='+h+',resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=200,top=200,screenX=200,screenY=200');
//	window.blur();
	mywindow.focus();
}

var col_num = 0;

function eline( url, img, alt ) {
    var num_col = 5;

document.write('<A TARGET="_NEW" HREF="http://'+url+'"><IMG valign=center vspace=1 width=175 ALT="'+alt+'" BORDER=0 SRC="/images_p/'+img+'"></A>');
if ( (col_num) == (num_col-1)) document.write('<BR>'); else document.write('&nbsp;&nbsp;');
col_num = (col_num + 1 ) % num_col;
}

function femaraExhibitors() {

    var	num_exh = 30
    var Stamp = new Date();


startpoint = (Stamp.getSeconds() % num_exh);
if ((startpoint %2) == 1) startpoint = startpoint -1;
//document.write(startpoint);
for (i = startpoint; i<=startpoint+num_exh-1; i=i+1) {

q = i % num_exh;
if (q== 0) eline('www.buddipole.com','buddipole.gif',                        'Buddipole' );
if (q== 1) eline('www.cq-amateur-radio.com','cq.jpg',                        'CQ Amateur Radio');
if (q== 2) eline('www.cwtouchkeyer.com','cwtouchkeyer.jpg',                  'CW touch keyer');
if (q== 3) eline('www.echolink.org','echolink.gif',                          'Echolink');
if (q== 4) eline('www.elecraft.com','elecraft.jpg',                          'Elecraft');
if (q== 5) eline('www.flex-radio.com','flex.gif',                            'Flex Radio');
if (q== 6) eline('www.hamtestonline.com','hamtestonline.gif',                'Ham Test Online');
if (q== 7) eline('www.hamradio.com','hro.jpg',                               'HRO');
if (q==99) eline('heilsound.com/amateur/','heil.jpg',                        'Heil Sound');
if (q== 9) eline('www.icomamerica.com/en/amateur/default.aspx','icom.gif',   'ICOM');
if (q==10) eline('kenwoodusa.com/Communications/Amateur_Radio','kenwood.gif','Kenwood');
if (q==11) eline('kjielectronics.com','kji.gif',                             'KJI');
if (q==12) eline('www.radialllarsen.com','larsen.jpg',                       'Larsen Antennas');
if (q==13) eline('www.lightbeamantenna.com','lightbeam.png',                 'Lightbeam Antenna');
if (q==99) eline('www.lidomounts.com','lido.jpg',                            'Lido Products');
if (q==99) eline('www.mfjenterprises.com','mfj.gif',                         'MFJ');
if (q==15) eline('qrpme.com','qrpme.jpg',                                    'QRP me');
if (q==16) eline('www.qsradio.com','quicksilver.gif',                        'Quicksilver');
if (q==17) eline('www.radio-oasis.com','radiooasis.gif',                     'Radio Oasis');
if (q==99) eline('www.radiobooks.com','radioware.gif',                       'Radioware');
if (q==18) eline('www.rescuetape.com','rescuetape.bmp',                      'Rescue Tape');
if (q==19) eline('www.rfconcepts.com','rfconcepts.jpg',                      'RFConcepts');
if (q==20) eline('www.sauderelectronics.com','sauder.jpg',                   'Sauder Electronics');
if (q==99) eline('www.tentec.com','tentec.png',                              'Ten Tec');
if (q==21) eline('www.pl-259.com','tower.jpg',                               'Tower Electronics');
if (q==99) eline('www.hexbeam.com','traffie.gif',                            'Traffie/Hexbeam');
if (q==23) eline('www.unadilla.com','Unadilla.jpg',                          'Unadilla');
if (q==24) eline('www.visradio.com','visradio.gif',                          'VIS Amateur Supply');
if (q==25) eline('www.wa1ffl.com','wa1ffl.png',                              'WA1FFL');
if (q==26) eline('www.westmountainradio.com','wmr.jpg',                      'West Mountain Radio');
if (q==27) eline('wulfden.org/TheShoppe/index.shtml','wulfden.gif',          'Wulden Shoppes');
if (q==28) eline('www.ww-manufacturing.com','batterytech.jpg',               'Battery Tech');
if (q==29) eline('www.yaesu.com','yaesu.jpg',                                'Yaesu');

}

}

