summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php126
-rw-r--r--map.js202
2 files changed, 164 insertions, 164 deletions
diff --git a/index.php b/index.php
index 32845d1..7281972 100644
--- a/index.php
+++ b/index.php
@@ -59,10 +59,10 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
<b>Elemente<br />aus-/einblenden</b>
<form name="visibleform" action="#" onsubmit="return false">
<table class="legend">
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="defaultroute" value="true" onclick="javascript:toggleVisible('defaultroute')"></td> -->
- <!-- <td>&nbsp;</td><td>!Default</td> -->
- <!-- </tr> -->
+ <tr>
+ <td><input type="checkbox" name="defaultroute" value="true" onclick="javascript:toggleVisible('defaultroute')"></td>
+ <td>&nbsp;</td><td>!Default</td>
+ </tr>
<tr>
<td><input type="checkbox" name="offline" value="true" onclick="javascript:toggleVisible('offline')"></td>
<td>&nbsp;</td><td align="center"><img src="./img/marker_offline.png" /></td>
@@ -88,61 +88,61 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
<td>&nbsp;</td><td align="center"><img src="./img/link_blue.png" /></td>
</tr>
</table>
- <!-- <table class="undef"> -->
- <!-- <td><input type="checkbox" name="undef" value="true" onclick="javascript:toggleVisible('undef')"></td> -->
- <!-- <td>&nbsp;</td><td>Kanaele undef.</td> -->
- <!-- </table> -->
- <!-- <table class="5channel"> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="5channel" value="true" onclick="javascript:toggleVisible('5channel')"></td> -->
- <!-- <td>&nbsp;</td><td>Alle 5GHz Kanaele</td> -->
- <!-- </tr> -->
- <!-- </table> -->
- <!-- <table class="2.4channel"> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="2.4channel" value="true" onclick="javascript:toggleVisible('2.4channel')"></td> -->
- <!-- <td>&nbsp;</td><td>Alle 2.4GHz Kanaele</td> -->
- <!-- </tr> -->
- <!-- </table> -->
- <!-- <table class="channel"> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="channel1" value="true" onclick="javascript:toggleVisible('channel1')"></td> -->
- <!-- <td>&nbsp;</td><td>1</td> -->
- <!-- <td><input type="checkbox" name="channel2" value="true" onclick="javascript:toggleVisible('channel2')"></td> -->
- <!-- <td>&nbsp;</td><td>2</td> -->
- <!-- <td><input type="checkbox" name="channel3" value="true" onclick="javascript:toggleVisible('channel3')"></td> -->
- <!-- <td>&nbsp;</td><td>3</td> -->
- <!-- </tr> -->
- <!-- <tr> -->
+ <table class="undef">
+ <td><input type="checkbox" name="undef" value="true" onclick="javascript:toggleVisible('undef')"></td>
+ <td>&nbsp;</td><td>Kanaele undef.</td>
+ </table>
+ <table class="5channel">
+ <tr>
+ <td><input type="checkbox" name="5channel" value="true" onclick="javascript:toggleVisible('5channel')"></td>
+ <td>&nbsp;</td><td>Alle 5GHz Kanaele</td>
+ </tr>
+ </table>
+ <table class="2.4channel">
+ <tr>
+ <td><input type="checkbox" name="2.4channel" value="true" onclick="javascript:toggleVisible('2.4channel')"></td>
+ <td>&nbsp;</td><td>Alle 2.4GHz Kanaele</td>
+ </tr>
+ </table>
+ <table class="channel">
+ <tr>
+ <td><input type="checkbox" name="channel1" value="true" onclick="javascript:toggleVisible('channel1')"></td>
+ <td>&nbsp;</td><td>1</td>
+ <td><input type="checkbox" name="channel2" value="true" onclick="javascript:toggleVisible('channel2')"></td>
+ <td>&nbsp;</td><td>2</td>
+ <td><input type="checkbox" name="channel3" value="true" onclick="javascript:toggleVisible('channel3')"></td>
+ <td>&nbsp;</td><td>3</td>
+ </tr>
+ <tr>
- <!-- <td><input type="checkbox" name="channel4" value="true" onclick="javascript:toggleVisible('channel4')"></td> -->
- <!-- <td>&nbsp;</td><td>4</td> -->
- <!-- <td><input type="checkbox" name="channel5" value="true" onclick="javascript:toggleVisible('channel5')"></td> -->
- <!-- <td>&nbsp;</td><td>5</td> -->
- <!-- <td><input type="checkbox" name="channel6" value="true" onclick="javascript:toggleVisible('channel6')"></td> -->
- <!-- <td>&nbsp;</td><td>6</td> -->
- <!-- </tr> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="channel7" value="true" onclick="javascript:toggleVisible('channel7')"></td> -->
- <!-- <td>&nbsp;</td><td>7</td> -->
- <!-- <td><input type="checkbox" name="channel8" value="true" onclick="javascript:toggleVisible('channel8')"></td> -->
- <!-- <td>&nbsp;</td><td>8</td> -->
- <!-- <td><input type="checkbox" name="channel9" value="true" onclick="javascript:toggleVisible('channel9')"></td> -->
- <!-- <td>&nbsp;</td><td>9</td> -->
- <!-- </tr> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="channel10" value="true" onclick="javascript:toggleVisible('channel10')"></td> -->
- <!-- <td>&nbsp;</td><td>10</td> -->
- <!-- <td><input type="checkbox" name="channel11" value="true" onclick="javascript:toggleVisible('channel11')"></td> -->
- <!-- <td>&nbsp;</td><td>11</td> -->
- <!-- <td><input type="checkbox" name="channel12" value="true" onclick="javascript:toggleVisible('channel12')"></td> -->
- <!-- <td>&nbsp;</td><td>12</td> -->
- <!-- </tr> -->
- <!-- <tr> -->
- <!-- <td><input type="checkbox" name="channel13" value="true" onclick="javascript:toggleVisible('channel13')"></td> -->
- <!-- <td>&nbsp;</td><td>13</td> -->
- <!-- </tr> -->
- <!-- </table> -->
+ <td><input type="checkbox" name="channel4" value="true" onclick="javascript:toggleVisible('channel4')"></td>
+ <td>&nbsp;</td><td>4</td>
+ <td><input type="checkbox" name="channel5" value="true" onclick="javascript:toggleVisible('channel5')"></td>
+ <td>&nbsp;</td><td>5</td>
+ <td><input type="checkbox" name="channel6" value="true" onclick="javascript:toggleVisible('channel6')"></td>
+ <td>&nbsp;</td><td>6</td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" name="channel7" value="true" onclick="javascript:toggleVisible('channel7')"></td>
+ <td>&nbsp;</td><td>7</td>
+ <td><input type="checkbox" name="channel8" value="true" onclick="javascript:toggleVisible('channel8')"></td>
+ <td>&nbsp;</td><td>8</td>
+ <td><input type="checkbox" name="channel9" value="true" onclick="javascript:toggleVisible('channel9')"></td>
+ <td>&nbsp;</td><td>9</td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" name="channel10" value="true" onclick="javascript:toggleVisible('channel10')"></td>
+ <td>&nbsp;</td><td>10</td>
+ <td><input type="checkbox" name="channel11" value="true" onclick="javascript:toggleVisible('channel11')"></td>
+ <td>&nbsp;</td><td>11</td>
+ <td><input type="checkbox" name="channel12" value="true" onclick="javascript:toggleVisible('channel12')"></td>
+ <td>&nbsp;</td><td>12</td>
+ </tr>
+ <tr>
+ <td><input type="checkbox" name="channel13" value="true" onclick="javascript:toggleVisible('channel13')"></td>
+ <td>&nbsp;</td><td>13</td>
+ </tr>
+ </table>
</form>
</div>
</div>
@@ -150,11 +150,11 @@ if($_SERVER['HTTP_HOST'] == 'dev-karte.ffgraz.net') {
<div id="loginbox" class="box">
<script type="text/javascript">
<?php
- /* if (!isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) { */
- /* echo 'showFFLogin();'; */
- /* } else { */
- /* echo 'showFFLogout("'.$_SESSION['username'].'");'; */
- /* } */
+ if (!isset($_SESSION['logged_in']) || !$_SESSION['logged_in']) {
+ echo 'showFFLogin();';
+ } else {
+ echo 'showFFLogout("'.$_SESSION['username'].'");';
+ }
?>
</script>
</div>
diff --git a/map.js b/map.js
index b60b7f0..9644bf9 100644
--- a/map.js
+++ b/map.js
@@ -208,9 +208,9 @@ function drawLinks(xmlData) {
line.setMap(map);
overlays["links"].push(line);
}
- // if(document.visibleform.elements["defaultroute"].checked) {
- // toggleVisible("defaultroute");
- // }
+ if(document.visibleform.elements["defaultroute"].checked) {
+ toggleVisible("defaultroute");
+ }
if(document.visibleform.elements["bad"].checked) {
toggleVisible("bad");
}
@@ -223,54 +223,54 @@ function drawLinks(xmlData) {
if(document.visibleform.elements["tunnel"].checked) {
toggleVisible("tunnel");
}
- // if(document.visibleform.elements["2.4channel"].checked) {
- // toggleVisible("2.4channel");
- // }
- // if(document.visibleform.elements["channel1"].checked) {
- // toggleVisible("channel1");
- // }
- // if(document.visibleform.elements["channel2"].checked) {
- // toggleVisible("channel2");
- // }
- // if(document.visibleform.elements["channel3"].checked) {
- // toggleVisible("channel3");
- // }
- // if(document.visibleform.elements["channel4"].checked) {
- // toggleVisible("channel4");
- // }
- // if(document.visibleform.elements["channel5"].checked) {
- // toggleVisible("channel5");
- // }
- // if(document.visibleform.elements["channel6"].checked) {
- // toggleVisible("channel6");
- // }
- // if(document.visibleform.elements["channel7"].checked) {
- // toggleVisible("channel7");
- // }
- // if(document.visibleform.elements["channel8"].checked) {
- // toggleVisible("channel8");
- // }
- // if(document.visibleform.elements["channel9"].checked) {
- // toggleVisible("channel9");
- // }
- // if(document.visibleform.elements["channel10"].checked) {
- // toggleVisible("channel10");
- // }
- // if(document.visibleform.elements["channel11"].checked) {
- // toggleVisible("channel11");
- // }
- // if(document.visibleform.elements["channel12"].checked) {
- // toggleVisible("channel12");
- // }
- // if(document.visibleform.elements["channel13"].checked) {
- // toggleVisible("channel13");
- // }
- // if(document.visibleform.elements["5channel"].checked) {
- // toggleVisible("5channel");
- // }
- // if(document.visibleform.elements["undef"].checked) {
- // toggleVisible("undef");
- // }
+ if(document.visibleform.elements["2.4channel"].checked) {
+ toggleVisible("2.4channel");
+ }
+ if(document.visibleform.elements["channel1"].checked) {
+ toggleVisible("channel1");
+ }
+ if(document.visibleform.elements["channel2"].checked) {
+ toggleVisible("channel2");
+ }
+ if(document.visibleform.elements["channel3"].checked) {
+ toggleVisible("channel3");
+ }
+ if(document.visibleform.elements["channel4"].checked) {
+ toggleVisible("channel4");
+ }
+ if(document.visibleform.elements["channel5"].checked) {
+ toggleVisible("channel5");
+ }
+ if(document.visibleform.elements["channel6"].checked) {
+ toggleVisible("channel6");
+ }
+ if(document.visibleform.elements["channel7"].checked) {
+ toggleVisible("channel7");
+ }
+ if(document.visibleform.elements["channel8"].checked) {
+ toggleVisible("channel8");
+ }
+ if(document.visibleform.elements["channel9"].checked) {
+ toggleVisible("channel9");
+ }
+ if(document.visibleform.elements["channel10"].checked) {
+ toggleVisible("channel10");
+ }
+ if(document.visibleform.elements["channel11"].checked) {
+ toggleVisible("channel11");
+ }
+ if(document.visibleform.elements["channel12"].checked) {
+ toggleVisible("channel12");
+ }
+ if(document.visibleform.elements["channel13"].checked) {
+ toggleVisible("channel13");
+ }
+ if(document.visibleform.elements["5channel"].checked) {
+ toggleVisible("5channel");
+ }
+ if(document.visibleform.elements["undef"].checked) {
+ toggleVisible("undef");
+ }
}
function showLinkInfo(link, point) {
@@ -398,63 +398,63 @@ function makeIcon(type) {
function toggleVisible(element) {
var elements = Object();
- // if (element=='bad' || element=='middle' || element=='good'){
- // document.visibleform.elements["2.4channel"].checked=false;
- // document.visibleform.elements["channel1"].checked=false;
- // document.visibleform.elements["channel2"].checked=false;
- // document.visibleform.elements["channel3"].checked=false;
- // document.visibleform.elements["channel4"].checked=false;
- // document.visibleform.elements["channel5"].checked=false;
- // document.visibleform.elements["channel6"].checked=false;
- // document.visibleform.elements["channel7"].checked=false;
- // document.visibleform.elements["channel8"].checked=false;
- // document.visibleform.elements["channel9"].checked=false;
- // document.visibleform.elements["channel10"].checked=false;
- // document.visibleform.elements["channel11"].checked=false;
- // document.visibleform.elements["channel12"].checked=false;
- // document.visibleform.elements["channel13"].checked=false;
- // document.visibleform.elements["5channel"].checked=false;
- // document.visibleform.elements["undef"].checked=false;
- // }
- // if (element=='2.4channel'){
- // document.visibleform.elements["channel1"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel2"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel3"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel4"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel5"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel6"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel7"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel8"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel9"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel10"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel11"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel12"].checked=document.visibleform.elements["2.4channel"].checked;
- // document.visibleform.elements["channel13"].checked=document.visibleform.elements["2.4channel"].checked;
- // }
+ if (element=='bad' || element=='middle' || element=='good'){
+ document.visibleform.elements["2.4channel"].checked=false;
+ document.visibleform.elements["channel1"].checked=false;
+ document.visibleform.elements["channel2"].checked=false;
+ document.visibleform.elements["channel3"].checked=false;
+ document.visibleform.elements["channel4"].checked=false;
+ document.visibleform.elements["channel5"].checked=false;
+ document.visibleform.elements["channel6"].checked=false;
+ document.visibleform.elements["channel7"].checked=false;
+ document.visibleform.elements["channel8"].checked=false;
+ document.visibleform.elements["channel9"].checked=false;
+ document.visibleform.elements["channel10"].checked=false;
+ document.visibleform.elements["channel11"].checked=false;
+ document.visibleform.elements["channel12"].checked=false;
+ document.visibleform.elements["channel13"].checked=false;
+ document.visibleform.elements["5channel"].checked=false;
+ document.visibleform.elements["undef"].checked=false;
+ }
+ if (element=='2.4channel'){
+ document.visibleform.elements["channel1"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel2"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel3"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel4"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel5"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel6"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel7"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel8"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel9"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel10"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel11"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel12"].checked=document.visibleform.elements["2.4channel"].checked;
+ document.visibleform.elements["channel13"].checked=document.visibleform.elements["2.4channel"].checked;
+ }
switch(element) {
- // case 'defaultroute': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].defaultroute == '0');"); break;
+ case 'defaultroute': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].defaultroute == '0');"); break;
case 'offline': elements.overlays = overlays["locations"]; elements.select = new Function("id", "return (locations[overlays['locations'][id].locid].state == 'offline');"); break;
case 'online': elements.overlays = overlays["locations"]; elements.select = new Function("id", "return (locations[overlays['locations'][id].locid].state != 'offline');"); break;
case 'bad': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].value >= 6);"); break;
case 'middle': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].value >= 3 && links[overlays['links'][id].linkid].value < 6);"); break;
case 'good': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].value >= 0 && links[overlays['links'][id].linkid].value < 3);"); break;
case 'tunnel': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].value == -1);"); break;
- // case 'channel1': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '1');"); break;
- // case 'channel2': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '2');"); break;
- // case 'channel3': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '3');"); break;
- // case 'channel4': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '4');"); break;
- // case 'channel5': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '5');"); break;
- // case 'channel6': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '6');"); break;
- // case 'channel7': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '7');"); break;
- // case 'channel8': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '8');"); break;
- // case 'channel9': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '9');"); break;
- // case 'channel10': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '10');"); break;
- // case 'channel11': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '11');"); break;
- // case 'channel12': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '12');"); break;
- // case 'channel13': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '13');"); break;
- // case 'undef': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence == 'undef');"); break;
- // case '2.4channel': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence == '2.4');"); break;
- // case '5channel': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence !=='2.4' && links[overlays['links'][id].linkid].frequence !=='undef');"); break;
+ case 'channel1': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '1');"); break;
+ case 'channel2': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '2');"); break;
+ case 'channel3': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '3');"); break;
+ case 'channel4': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '4');"); break;
+ case 'channel5': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '5');"); break;
+ case 'channel6': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '6');"); break;
+ case 'channel7': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '7');"); break;
+ case 'channel8': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '8');"); break;
+ case 'channel9': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '9');"); break;
+ case 'channel10': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '10');"); break;
+ case 'channel11': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '11');"); break;
+ case 'channel12': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '12');"); break;
+ case 'channel13': document.visibleform.elements["2.4channel"].checked=false; elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].channel == '13');"); break;
+ case 'undef': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence == 'undef');"); break;
+ case '2.4channel': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence == '2.4');"); break;
+ case '5channel': elements.overlays = overlays["links"]; elements.select = new Function("id", "return (links[overlays['links'][id].linkid].frequence !=='2.4' && links[overlays['links'][id].linkid].frequence !=='undef');"); break;
}
if(document.visibleform.elements[element].checked) {