var txt1 = "<table width=\'700\' border=\'0\'><tr valign=\'top\'><td><strong>FREQ<br></strong>Transmit/Output<br>Frequency<br><br><strong>OF<br></strong> Standard Offset (+/-)<br>&nbsp;&nbsp;&nbsp;&nbsp;10 Meters = 100 kHz<br>&nbsp;&nbsp;&nbsp;&nbsp;6 Meters = 1 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;2 Meters = 600 kHz<br>&nbsp;&nbsp;&nbsp;&nbsp;222 MHz = 1.6 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;440 MHz = 5 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;902 MHz = 25 MHz<br>&nbsp;&nbsp;&nbsp;&nbsp;1.2 GHz = 12 MHz<br>Simplex/No Offset (S)<br>Non Standard Offset (*)</td><td><strong>ST</strong><br>State of Transmitter<br><br><strong>CITY</strong><br>Town or City<br>of Transmitter <br><br><strong>CALL</strong><br>Transmitter Call Sign<br>&nbsp;&nbsp;&nbsp;&nbsp;Includes Hyperlink<br>&nbsp;&nbsp;&nbsp;&nbsp;to System Sponsor<br>&nbsp;&nbsp;&nbsp;&nbsp;If Website Available<br><br><strong>PL</strong><br>CTCSS (PL)<br>or DCS (DPL)<br>Needed for<br>System Access<br></td><td><strong>TS<br></strong> Tone Squelch (TS)<br>PL is Retransmitted<br>If Frequency Shown,<br>Different PL Transmitted<br>&nbsp;&nbsp;&nbsp;&nbsp;Asterisk (*) Indicates<br>&nbsp;&nbsp;&nbsp;&nbsp;Tone is Encoded Only<br>&nbsp;&nbsp;&nbsp;&nbsp;During User Activity<br>&nbsp;&nbsp;&nbsp;&nbsp;(Gated PL)<BR><BR><strong>STATUS</strong><br>System Status<br>On Air (Blank)<br>Limited Transmit (Limited TX)<br>Limited Receive (Limited RX)<br>Local Coverage (Local)<br>Off Air (OFF) </td><td><strong>COUNTY<br></strong>County of Transmitter<br><br><strong>IRLP<br></strong>IRLP Node Number<br>&nbsp;&nbsp;&nbsp;&nbsp;Includes Hyperlink<br>&nbsp;&nbsp;&nbsp;&nbsp;to IRLP Status Page<br><br><strong>ECHO</strong><br>EchoLink Node Number<br><br><strong>LINKS/COMMENTS<br></strong>Non Standard Offsets,<br>RF Linked Networks<br>and Other Comments<br>&nbsp;&nbsp;&nbsp;&nbsp;Linked Networks Shown<br>&nbsp;&nbsp;&nbsp;&nbsp;in [Brackets] Means the<br>&nbsp;&nbsp;&nbsp;&nbsp;Link is Part Time</td></tr></table>"
var txt2 = "You can sort data in four different ways; FREQUENCY, STATE, CITY or COUNTY.&nbsp; Simply click on the blue arrow next to the column you wish to sort by."

band = '';

// Fetch cookie information...
expireDate = new Date
expireDate.setFullYear(expireDate.getFullYear()+1)

var dtype;

function savecookie(newdtype) {
//	alert(newdtype);
	document.cookie = "dtype="+newdtype+"; expires="+expireDate.toGMTString();
}

function changecss(theClass,element,value) {
//Custom JavaScript Functions by Shawn Olson
//Copyright 2010
//http://www.shawnolson.net
//documentation for this script at http://www.shawnolson.net/a/503/
 var cssRules;
  if (document.all) {
    cssRules = 'rules';
  }
  else if (document.getElementById) {
    cssRules = 'cssRules';
  }
  for (var S = 0; S < document.styleSheets.length; S++){
    for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
      if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
        document.styleSheets[S][cssRules][R].style[element] = value;
      }
    }
  }
}

function makeSimple() {
changecss('.loc','display','none');
changecss('.simplelink','display','none');
changecss('.expandedlink','display','inline');
savecookie('Simple');
}

function makeExpanded() {
changecss('.loc','display','inline');
changecss('.simplelink','display','inline');
changecss('.expandedlink','display','none');
savecookie('Expanded');
}

//init script starts here:

if (document.cookie != "") {
   CookieArray = document.cookie.split(";");
   for (i=0; i<CookieArray.length; i++) {
       data = CookieArray[i];
       object= data.split("=")[0];
       if (object.search(/dtype/)>=0) dtype = data.split("=")[1];
   }
}
if (dtype=='Simple') makeSimple(); 


function goto(band,key) {
	if (key!="") v= band+"_"+key+".htm";
	else v = band+".htm";
	location.href = v;
}

function OpenWindow(url) {
//	alert(url);
	myWindow = window.open(url,'mywin','left=20,top=20,width=955,height=600,scrollbars=1,toolbar=0,resizable=0');
	myWindow.focus();
}

function NerepHeader() {
document.write('<div align="center"></div>');
document.write('<table width="955" border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('  <tr>');
document.write('    <td height="15" bgcolor="#DDDDDD"><span style="font-size: 8pt">&nbsp;&gt;&gt; Visit our ');
document.write('      sister site:&nbsp; <a href="http://www.nyrepeaters.com">NEW YORK REPEATER ');
document.write('      DIRECTORY </a></span></td>');
document.write('  </tr>');
document.write('  <tr> ');
document.write('    <td height="150" align="center"><a href="http://www.nerepeaters.com"><img src="/images/neheader.gif" width="955" border="0" alt="New England Repeater Directory"></a></td>');
document.write('  </tr>');
document.write('  <tr> ');
document.write('    <td bgcolor="#006699" height="25"> ');
document.write('      <table width="955" border="0" align="center" cellpadding="0" cellspacing="0">');
document.write('        <tr align="center">');
document.write('          <td width="10%"><a href="10m.htm"><font color="#FFFF99">10 Meters </font></a></td>');
document.write('          <td width="10%"><a href="6m.htm"><font color="#FFFF99">6 Meters </font></a></td>');
document.write('          <td width="9%"><a href="2m.htm"><font color="#FFFF99">2 Meters</font></a></td>');
document.write('          <td width="9%"><a href="222.htm"><font color="#FFFF99">222 MHz</font></a></td>');
document.write('          <td width="9%"><a href="440.htm"><font color="#FFFF99">440 MHz</font></a></td>');
document.write('          <td width="9%"><a href="902.htm"><font color="#FFFF99">902 MHz</font></a></td>');
document.write('          <td width="9%"><a href="1240.htm"><font color="#FFFF99">1.2 GHz</font></a></td>');
document.write('          <td width="13%"><a href="nets.htm"><font color="#FFFF99">Linked Nets </font></a></td>');
document.write('          <td width="13%"><a href="simplex.htm"><font color="#FFFF99">VoIP Simplex </font></a></td>');
document.write('          <td width="9%"><a href="searchNE.htm"><font color="#FFFF99">Search</font></a></td>');
document.write('        </tr>');
document.write('      </table></td>');
document.write('  </tr>');
document.write('</table>');
document.write('<br>');
}

function NerepTrailer() {
document.write('<br>');
document.write('<center>');
document.write('<b>&copy; 1999-2010 New England Repeater Directory</b> ');
document.write('</center>');
}





