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 (S)<br>Non Standard Offset (*)<br /><br /><strong>ST</strong><br />State of Transmitter<br /><br /><strong>CITY</strong><br />Town or City<br />of Transmitter </td><td><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>MODE</strong><br />Emission Type<br />&nbsp;&nbsp;&nbsp;&nbsp;Includes D-STAR,<br />&nbsp;&nbsp;&nbsp;&nbsp;NXDN and P25<br />&nbsp;&nbsp;&nbsp;&nbsp;digital modes.&nbsp; If two<br />&nbsp;&nbsp;&nbsp;&nbsp;modes are listed, system<br />&nbsp;&nbsp;&nbsp;&nbsp;is mixed-mode. <br />Analog 5 kHz FM (Blank)<br><br><strong>CODE</strong><br>Input Access Code<br />&nbsp;&nbsp;&nbsp;&nbsp;Includes CTCSS (PL)<br>&nbsp;&nbsp;&nbsp;&nbsp;or DCS (DPL) for<br />&nbsp;&nbsp;&nbsp;&nbsp;analog systems, plus<br />&nbsp;&nbsp;&nbsp;&nbsp;NAC for P25 digital or<br />&nbsp;&nbsp;&nbsp;&nbsp;RAN for NXDN digital.<br />Carrier Squelch (Blank)<br></td><td><strong>TS<br></strong> Tone Squelch (TS)<br>&nbsp;&nbsp;&nbsp;&nbsp;If CTCSS or DCS code<br />&nbsp;&nbsp;&nbsp;&nbsp;is shown, that unique<br />&nbsp;&nbsp;&nbsp; code is transmitted.<br>&nbsp;&nbsp;&nbsp;&nbsp;Asterisk (*) for CTCSS<br />&nbsp;&nbsp;&nbsp;&nbsp;codes indicate a tone that<br />&nbsp;&nbsp;&nbsp;&nbsp;is encoded only during user<br />&nbsp;&nbsp;&nbsp;&nbsp;activity (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] mean the<br>&nbsp;&nbsp;&nbsp;&nbsp;link is part time.&nbsp; Systems<br />&nbsp;&nbsp;&nbsp;&nbsp;with three or more links<br />&nbsp;&nbsp;&nbsp;&nbsp;include a hyperlink to the<br />&nbsp;&nbsp;&nbsp;&nbsp;Linked Nets page.</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-2012 New England Repeater Directory</b> ');
document.write('</center>');
}






