Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
nombre réponses : 25

#0 -1 »  Numericable » Le 09/04/2014, à 19:43

Sciensous
Réponses : 0

Bonsoir,
je mets dessous le code source de la page wifi de numericable; vu qu'il y a plein de script dedans, est-il possible de faire un petit script shell pour activer/désactiver le wifi ?

je suis désolé d'être un peu brutal mais je ne sais pas faire, je n'ai rien trouvé et ça m'aiderai franchement bien wink

merci d'avance
cool

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!--meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /-->
    <script type="text/javascript" src='NumLanguageFr.js'></script>
    <title>Mon Modem</title>
<link rel="stylesheet" href="Elements_Numericable_FR_GUI/style.css"  type="text/css" media="screen" />
	 <script type="text/javascript" src="functions.js"></script>
	 <script src="SpryMenuBar.js" type="text/javascript"></script>
	 <script language="JavaScript" type="text/javascript" src="scripts.js"></script>  
    <!--[if IE 6]><link rel="stylesheet" href="style_ie6.css" tppabs="style_ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="style_ie7.css" tppabs="style_ie7.css" type="text/css" media="screen" /><![endif]-->
<link href="Elements_Numericable_FR_GUI/SpryMenuBarHorizontal.css"  rel="stylesheet" type="text/css" />
<script language="Javascript" src="scripts.js"></script>
<SCRIPT type="text/javascript" src="jquery/jquery-1.4.2.min.js"></SCRIPT>
<script language="Javascript" src="md5.js"></script>

<script language=javascript type=text/javascript>
<!--
var enableRouteMode = "0";
var option80211nMode = [];
var isRunningWPS = false;
    $(document).ready(function()
    {	
        document.title=NumTitle;
        BodyInit();
    });

/*
    2.4G Dual mode|2.4G selector | Enable Wi-Fi network | Enable SSID Broadcast | SSID | Standard Wi-Fi |
    Transmission power | Mode | Transmission channel | Current Channel|Security options

    | WPA-PSA (text) | Wep Auth type (select) | Wep Encryption (select) | Wep key index (combobox) |
    64 - Wep key 1 (text) | Wep key 2 (text) | Wep key 3 (text) | Wep key 4 (text)  | 
    128 - Wep key 1 (text) | Wep key 2 (text) | Wep key 3 (text) | Wep key 4 (text)  | 
    wep passphrase | WPA/WPA2 Enter. WPA mode| Radius IP | Radius Port | Radius Server Shared Key
    fWpaKeyIsProtected
*/

function InitTagValue()
{

/*
    var tagValueList = "1|1|1|1|XXXX-AD01|0|100|54|0|11|5|abcdefg|1|1|2|" +
            "1234567890|0FE99CAF21|3858BE6E22|9876543210|" +
            "128F1234567890|128F0FE99CAF21|128F3858BE6E22|128F9876543210|" +
            "12345678|2|192.168.0.133|64454|SecertKey|1|192.168.0.1|255.255.255.254|1";
*/
    var tagValueList = '2.4G|0|b and g only:11b/g/n|1|0|NUMERICABLE-****|1|25|144|0|11|4|CD3M73340K|0|0|0|0000000000|0000000000|0000000000|0000000000|00000000000000000000000000|00000000000000000000000000|00000000000000000000000000|00000000000000000000000000||2|0.0.0.0|1812||1|192.168.0.1|255.255.255.254|0|';

    return tagValueList.split("|");
}

function InitUpdateView(tagValues)
{
    var langue = 'NumLanguageFr';
    $('select[name=select]').children().each(function(){        
        if ($(this).val()== langue){
            $(this).attr("selected","true");
        }
    });

    var optionMode = tagValues[0].split(" ");
    if (optionMode.length <= 1)
        $('#DisplayDualMode').hide();
    else
        $('#DisplayDualMode').show();
       
    create80211ModeOptions(optionMode);       

    $('select[name=NumNetgear80211Mode]').children().each(function(){ 
        if ($(this).val()== tagValues[1]){
            $(this).attr("selected","true");
        }
    });
    
    if(isRunningWPS)
        $('select[name=NumNetgear80211Mode]').attr("disabled","disabled");
    
    option80211nMode = tagValues[2].split(":");

    
    if (tagValues[3] == "0")
        $('input[name=NumNetgearEnableWireless]').attr('checked', false);
    else
        $('input[name=NumNetgearEnableWireless]').attr('checked', true);

    if (tagValues[4] == "0")
        $('input[name=NetgearClosedNetworkTemp]').attr('checked', false);
    else
        $('input[name=NetgearClosedNetworkTemp]').attr('checked', true);

    if (tagValues[5] == "0")
        $('input[name=NumServiceSetIdentifier]').attr('value', "");
    else
        $('input[name=NumServiceSetIdentifier]').attr('value', piplineDecode(tagValues[5]));
    
    window.document.Numwifi.NumNetgearSecOption[tagValues[11]].checked = true;
    selectoption(tagValues[11]);
    
    $('select[name=NumNetgear80211nMode]').children().each(function(){ 
        if ($(this).val()== tagValues[6]){
            $(this).attr("selected","true");
        }
    });
    CheckWifi80211nMode();


    $('select[name=NumOutputPower]').children().each(function(){ 
        if ($(this).val()== tagValues[7]){
            $(this).attr("selected","true");
        }
    });

    $('select[name=NumConnectSpeedMode]').children().each(function(){ 
        if ($(this).val()== tagValues[8]){
            $(this).attr("selected","true");
        }
    });

    $('select[name=NumChannelNumber]').children().each(function(){ 
        if ($(this).val()== tagValues[9]){
            $(this).attr("selected","true");
        }
    });

    $("#CurrentChannel").html(tagValues[10]);

//    $('input[name=NumNetgearSecOption1]').attr('checked', false);
//    $('input[name=NumNetgearSecOption2]').attr('checked', false);
//    $('input[name=NumNetgearSecOption3]').attr('checked', false);
//    $('input[name=NumNetgearSecOption4]').attr('checked', false);
//    $('input[name=NumNetgearSecOption5]').attr('checked', false);
//    $('input[name=NumNetgearSecOption6]').attr('checked', false);
//    $('input[name=NumNetgearSecOption]').attr('value', tagValues[10]);

//    switch (tagValues[10])
//    {
//        case '1': // Disable
//            $('input[name=NumNetgearSecOption1]').attr('checked', true);
//            break;
//       case '2': // WEP
//          $('input[name=NumNetgearSecOption2]').attr('checked', true);
//            break;
//        case '3': // WPA-PSK
//            $('input[name=NumNetgearSecOption3]').attr('checked', true);
//            break;
//        case '4': // WPA2-PSK
//            $('input[name=NumNetgearSecOption4]').attr('checked', true);
//            break;
//        case '5': // WPA/WPA2
//           $('input[name=NumNetgearSecOption5]').attr('checked', true);
//           break;
//        case '6': // WPA/WPA2 Enterprise
//            $('input[name=NumNetgearSecOption6]').attr('checked', true);
//            break;
//    }
    
    if (!tagValues[12])
        $('input[name=NumWpaPreSharedKey]').attr('value', "");
    else
        $('input[name=NumWpaPreSharedKey]').attr('value', piplineDecode(tagValues[12]));

    // 0:Auto, 1:Shared
    $('input[name=NumAuthenticationSelector]').val(tagValues[13]);

    // 0:64bit, 1:128bit
    $('input[name=NumWEP64v128Selector]').val(tagValues[14]);

    // NumAdvWirelessSetupKey1~NumAdvWirelessSetupKey4
    var SetupKeyIndex = "NumAdvWirelessSetupKey" + (parseInt(tagValues[15])+ 1) ;
    $('input[name=NumAdvWirelessSetupKey1]').attr('checked', false);
    $('input[name=NumAdvWirelessSetupKey2]').attr('checked', false);
    $('input[name=NumAdvWirelessSetupKey3]').attr('checked', false);
    $('input[name=NumAdvWirelessSetupKey4]').attr('checked', false);
    $('input[name=' + SetupKeyIndex + ']').attr('checked', true);

    $('input[name=NumWEP64_AdvWirelessSetupWepKey1]').val(tagValues[16]);
    $('input[name=NumWEP64_AdvWirelessSetupWepKey2]').val(tagValues[17]);
    $('input[name=NumWEP64_AdvWirelessSetupWepKey3]').val(tagValues[18]);
    $('input[name=NumWEP64_AdvWirelessSetupWepKey4]').val(tagValues[19]);

    $('input[name=NumWEP128_AdvWirelessSetupWepKey1]').val(tagValues[20]);
    $('input[name=NumWEP128_AdvWirelessSetupWepKey2]').val(tagValues[21]);
    $('input[name=NumWEP128_AdvWirelessSetupWepKey3]').val(tagValues[22]);
    $('input[name=NumWEP128_AdvWirelessSetupWepKey4]').val(tagValues[23]);

    /* Wep pass phrase */
    if (tagValues[23]) {
        $('input[name=NumWepPassPhrase]').val(tagValues[24]);
    }

    // 0:TKIP, 1:AES, 2:TKIP+AES
    $('select[name=NumNetgearWpaEncryption]').children().each(function(){ 
        if ($(this).val()== tagValues[25]){
            $(this).attr("selected","true");
        }
    });

    $('input[name=NumRadiusServer]').val(tagValues[26]);
    $('input[name=NumRadiusPort]').val(tagValues[27]);
    $('input[name=NumRadiusKey]').val(tagValues[28]);

    if (tagValues[29] == "1")
    {
        // Nick 20120911
        $('input[name=NumWiFiKeyProtection]').val(tagValues[29]);
        $('input[name=WPAPSK_WpaPreSharedKey1_hide]').show();
        $('input[name=WPAPSK_WpaPreSharedKey2_hide]').show();
        $('input[name=WPAPSK_WpaPreSharedKey3_hide]').show();
        $('input[name=WPAPSK_WpaPreSharedKey1]').hide();
        $('input[name=WPAPSK_WpaPreSharedKey2]').hide();
        $('input[name=WPAPSK_WpaPreSharedKey3]').hide();
    }
    
    if (tagValues[30]) {
        $('input[name=LanIp]').val(tagValues[30]);
    }
    if (tagValues[31]) {
        $('input[name=BroadcastIp]').val(tagValues[31]);
    }
    if(tagValues[32]=="1")
    {
        $("#idNetgearSecOption6").attr("style","display:''");
    }
    else
    {
        if(window.document.Numwifi.NumNetgearSecOption[5].checked)
        {
            $("#idNetgearSecOption6").attr("style","display:''");
            window.document.Numwifi.NumNetgearSecOption[5].disabled = true;
            $("select[name=NetgearEncryptionWpa2]").attr("disabled","disabled");
            $("input[name=WPA2_RadiusServer]").attr("disabled","disabled");
            $("input[name=WPA2_RadiusPort]").attr("disabled","disabled");
            $("input[name=WPA2_RadiusKey]").attr("disabled","disabled");
        }
    }
}

function InitTagChannel()
{
    //var tagValueList = '1|2|3|4|5|6|7|8|9|10|11|12|13|';
    var tagValueList = '1|2|3|4|5|6|7|8|9|10|11|12|13|';	
    return tagValueList.split("|");
}

function InitUpdateChannelView(tagValues)
{
    var cf = window.document.Numwifi;
    cf.NumChannelNumber.options.length = tagValues.length;
   
    cf.NumChannelNumber.options[0].text = NumAuto;
    cf.NumChannelNumber.options[0].value = 0;

    for (var i = 0; i < tagValues.length-1; i++) {
       cf.NumChannelNumber.options[i+1].value = parseInt (tagValues[i]);
       cf.NumChannelNumber.options[i+1].text = ((parseInt(tagValues[i]) < 10)? "0" + tagValues[i] : tagValues[i]);
    }
}

function BodyInit()
{
    $('input[name=OpenAccessFilter]').val(NumWiFiACLBtn);
    langTranslation();
    InitUpdateChannelView(InitTagChannel());
    getWpsState();
    InitUpdateView(InitTagValue());
    displayAllPages(checkRouteMode());
}

function getWpsState()
{
    //var tagValueList = '1|2|3|4|5|6|7|8|9|10|11|12|13|';
    var tagValueList = '';	
    if(tagValueList.split("|")[0] != "")
        isRunningWPS = true;
}

function checkRouteMode()
{
    //var tagValueList = "1|";
    var tagValueList = '1|';
    return tagValueList.split("|");
}

function displayAllPages(tageValue)
{
    enableRouteMode = tageValue[0];
    if(enableRouteMode == "0"){
        $('#guestNetworkMenu').css("display","none");
    }
}

function openPage(pageName,show)
{
    if((enableRouteMode == "0" && show == "true") || enableRouteMode == "1")
    {
        if(enableRouteMode == "0" && pageName =="Numreseau.htm")
            window.location = "Numreseau_bridge.htm";	
        else
            window.location = pageName;	
    }
}

function ApplyWifi80211Mode()
{
    var ff=window.document.Numwifi;
    if (ff.NumNetgear80211Mode.value == 0)
    {
        ff.WiFiAction.value= 1; // 2.4G
    }
    else
    {
        ff.WiFiAction.value= 2;
    }
    ff.submit();
}

function create80211ModeOptions(value)
{
	  var ff=window.document.Numwifi;
    for(var i=0; i < value.length; i++)
    {
        var option = new Option(value[i], i);
        ff.NumNetgear80211Mode.options[i]=option;
    }
}

function NetgearEncryptionWpa2SelectorChange()
{
    var ff=window.document.Numwifi;
    if(ff.NetgearEncryptionWpa2.value == 0)        //WEP (64-bit)
    {
        ff.NumNetgear80211nMode.options[0].value=0;
        ff.NumNetgear80211nMode.options[0].text=option80211nMode[0];
        ff.NumNetgear80211nMode.options[1]=null;
    }
    else if(ff.NetgearEncryptionWpa2.value == 1)   //WEP (128-bit)
    {
        ff.NumNetgear80211nMode.options[0].value=1;
        ff.NumNetgear80211nMode.options[0].text=option80211nMode[1];

        var speedOption = new Option(option80211nMode[0], 0);
        ff.NumNetgear80211nMode.options[1]=speedOption;
    }
    else if(ff.NetgearEncryptionWpa2.value == 2)   //WEP (128-bit)
    {
        ff.NumNetgear80211nMode.options[0].value=1;
        ff.NumNetgear80211nMode.options[0].text=option80211nMode[1];

        var speedOption = new Option(option80211nMode[0], 0);
        ff.NumNetgear80211nMode.options[1]=speedOption;
    }
    
    CheckWifi80211nMode();
}

function WEP64v128SelectorChange(val)
{
    if(val == 0)        //WEP (64-bit)
    {
        document.getElementById("WEP64v128Selector1").value    = 0;
        document.getElementById("WEP64v128Selector2").value    = 0;
        document.getElementById("table_WEP64").style.display   = 'block';
        document.getElementById("table_WEP128").style.display  = 'none';
    }
    else if(val == 1)   //WEP (128-bit)
    {
        document.getElementById("WEP64v128Selector1").value    = 1;
        document.getElementById("WEP64v128Selector2").value    = 1;
        document.getElementById("table_WEP64").style.display   = 'none';
        document.getElementById("table_WEP128").style.display  = 'block';
    }
}

function PassPhrase40(F)
{
    var seed = 0;
    var pseed = new Array(0, 0, 0, 0);
    var pkey = new Array(4);
    var asciiObj = new Array(4);
    Length = F.NumWEP64_WepPassPhrase.value.length;
    if(Length != 0)
    {
        for (i=0; i<Length; i++ )
            pseed[i%4] ^= F.NumWEP64_WepPassPhrase.value.charCodeAt(i);
        seed = pseed[0];
        seed += pseed[1] << 8;
        seed += pseed[2] << 16;
        seed += pseed[3] << 24;
    }
    F.NumWEP64_AdvWirelessSetupWepKey1.value = F.NumWEP64_AdvWirelessSetupWepKey2.value = "";
    F.NumWEP64_AdvWirelessSetupWepKey3.value = F.NumWEP64_AdvWirelessSetupWepKey4.value = "";
    pkey[0] = F.NumWEP64_AdvWirelessSetupWepKey1;
    pkey[1] = F.NumWEP64_AdvWirelessSetupWepKey2;
    pkey[2] = F.NumWEP64_AdvWirelessSetupWepKey3;
    pkey[3] = F.NumWEP64_AdvWirelessSetupWepKey4;
    for(j=0; j<4; j++)
    {
        for (i=0; i<5 ;i++ )
        {
            seed = (214013 * seed) & 0xffffffff;
            if(seed & 0x80000000)
                seed = (seed & 0x7fffffff) + 0x80000000 + 0x269ec3;
            else
                seed = (seed & 0x7fffffff) + 0x269ec3;
            temp = ((seed >> 16) & 0xff);
            if(temp < 0x10)
                pkey[j].value += "0" + temp.toString(16).toUpperCase();
            else
                pkey[j].value += temp.toString(16).toUpperCase();
        }
    }
    F.WEP64_AdvWirelessSetupKey1.checked = true;
    F.WEP64_AdvWirelessSetupKey2.checked = false;
    F.WEP64_AdvWirelessSetupKey3.checked = false;
    F.WEP64_AdvWirelessSetupKey4.checked = false;
}
function PassPhrase104(F)
{
    var pseed2 = "";
    Length2 = F.NumWEP128_WepPassPhrase.value.length;
    var asciiObj = "";
    for(p=0; p<64; p++)
    {
        tempCount = p % Length2;
        pseed2 += F.NumWEP128_WepPassPhrase.value.substring(tempCount, tempCount+1);
    }
    md5Str = calcMD5(pseed2);
    F.NumWEP128_AdvWirelessSetupWepKey1.value = md5Str.substring(0, 26).toUpperCase();
    F.NumWEP128_AdvWirelessSetupWepKey2.value = F.NumWEP128_AdvWirelessSetupWepKey1.value;
    F.NumWEP128_AdvWirelessSetupWepKey3.value = F.NumWEP128_AdvWirelessSetupWepKey1.value;
    F.NumWEP128_AdvWirelessSetupWepKey4.value = F.NumWEP128_AdvWirelessSetupWepKey1.valu</length  F.WEP128_AdvWirelessSetupKey1.checked = true;
    F.WEP128_AdvWirelessSetupKey2.checked = false;
    F.WEP128_AdvWirelessSetupKey3.checked = false;
    F.WEP128_AdvWirelessSetupKey4.checked = false;
}

function isValidKey(val)
{
    var ch;
    for(j = 0; j < val.length; j++)
    {
        ch = val.charAt(j);
        if (ch.search(/[0-9]|[a-z]|[A-Z]/) == -1)
            return false;           
    }
    return true;    
}

function generateWepKeys(val)
{
    var ff=window.document.Numwifi;

    if(ff.NumGenerateWepKeys!=undefined)
    {
        ff.NumGenerateWepKeys.value=1;
    }

    if (val==0)         //WEP (64-bit)
    {
        var WEP64_WepPassPhraseValue= ff. NumWEP64_WepPassPhrase.value;
        if (isBlank(WEP64_WepPassPhraseValue))
        {
            alert(WarningWepPassPhraseBlank);
            SetFormElementsFocus('NumWEP64_WepPassPhrase');
            return false;
        }
        if (!isValidKey(WEP64_WepPassPhraseValue))
        {
            alert(WarningWepPassPhraseInvalid);
            SetFormElementsFocus('NumWEP64_WepPassPhrase');
            return false;
        }
        // Generate 64-bit Wep Key
        PassPhrase40(ff);
        ff.NumWEP64_GenerateWepKeys.value=1;
        ff.NumWepPassPhrase.value = ff.NumWEP64_WepPassPhrase.value;
        ff.NumWEP64v128Selector.value = 0;
    }
    else if (val==1)    //WEP (128-bit)
    {
        var WEP128_WepPassPhraseValue= ff.NumWEP128_WepPassPhrase.value;
        if (isBlank(WEP128_WepPassPhraseValue))
        {
            alert(WarningWepPassPhraseBlank);
            SetFormElementsFocus('NumWEP128_WepPassPhrase');
            return false;
        }
        if (!isValidKey(WEP128_WepPassPhraseValue))
        {
            alert(WarningWepPassPhraseInvalid);
            SetFormElementsFocus('WEP128_WepPassPhraseValue');
            return false;
        }
        // Generate 128-bit Wep Key
        PassPhrase104(ff);

        ff.NumWEP128_GenerateWepKeys.value=1;
        ff.NumWepPassPhrase.value = ff.NumWEP128_WepPassPhrase.value;
        ff.NumWEP64v128Selector.value = 1;
    }
    
    return true;
}

function checkDisable()
{
    var ff=window.document.Numwifi;
//    var Opt1=ff.NumNetgearSecOption1;
//    var Opt2=ff.NumNetgearSecOption2;
//    var Opt3=ff.NumNetgearSecOption3;
//    var Opt4=ff.NumNetgearSecOption4;
//    var Opt5=ff.NumNetgearSecOption5;
//    var Opt6=ff.NumNetgearSecOption6;
var Opt1=window.document.Numwifi.NumNetgearSecOption[0];
var Opt2=window.document.Numwifi.NumNetgearSecOption[1];
var Opt3=window.document.Numwifi.NumNetgearSecOption[2];
var Opt4=window.document.Numwifi.NumNetgearSecOption[3];
var Opt5=window.document.Numwifi.NumNetgearSecOption[4];
var Opt6=window.document.Numwifi.NumNetgearSecOption[5];
	
	if(ff.NumNetgearEnableWireless.checked==false)
	{
		document.getElementById("table_Options").style.display = 'none';
		ff.NumServiceSetIdentifier.disabled=true;
		ff.NumChannelNumber.disabled=true;
		ff.NetgearClosedNetworkTemp.disabled=true;
		ff.OpenAccessFilter.disabled=true;
		ff.NumAuthentication.disabled=true;
		ff.NumWL8021xAuthentication.disabled=true;
	}
	else
	{
        /* get value */
        //Security Encryption(WEP) - Authentication
        var VlueOfAuthentication = ff.NumAuthenticationSelector.value;
        if (VlueOfAuthentication == 1)
        {
            ff.NumAuthentication.options[1].selected = true;
        }
        else
        {
            ff.NumAuthentication.options[0].selected = true;
        }

        if(ff.NumWL8021xAuthentication.value==1)
        {
            ff.NumAuthentication.disabled=true;
            ff.WEP64_AdvWirelessSetupKey1.disabled=true;
            ff.NumWEP64_AdvWirelessSetupWepKey1.disabled=true;
            ff.WEP64_AdvWirelessSetupKey4.disabled=true;
            ff.NumWEP64_AdvWirelessSetupWepKey4.disabled=true;
            ff.WEP128_AdvWirelessSetupKey1.disabled=true;
            ff.NumWEP128_AdvWirelessSetupWepKey1.disabled=true;
            ff.WEP128_AdvWirelessSetupKey4.disabled=true;
            ff.NumWEP128_AdvWirelessSetupWepKey4.disabled=true;
        }
        else
        {
            ff.NumAuthentication.disabled=false;
            ff.WEP64_AdvWirelessSetupKey1.disabled=false;
            ff.NumWEP64_AdvWirelessSetupWepKey1.disabled=false;
            ff.WEP64_AdvWirelessSetupKey4.disabled=false;
            ff.NumWEP64_AdvWirelessSetupWepKey4.disabled=false;
            ff.WEP128_AdvWirelessSetupKey1.disabled=false;
            ff.NumWEP128_AdvWirelessSetupWepKey1.disabled=false;
            ff.WEP128_AdvWirelessSetupKey4.disabled=false;
            ff.NumWEP128_AdvWirelessSetupWepKey4.disabled=false;
        }

        if(ff.NumAuthentication.value==1)
        {
            ff.NumWL8021xAuthentication.disabled=true;
        }
        else
        {      
            ff.NumWL8021xAuthentication.disabled=false;
        }

        //WEP Pass Phrase
        ff.NumWEP64_WepPassPhrase.value = ff.NumWepPassPhrase.value;
        ff.NumWEP128_WepPassPhrase.value = ff.NumWepPassPhrase.value;

        //default
        ff.WEP64_AdvWirelessSetupKey1.checked = false;
        ff.WEP64_AdvWirelessSetupKey2.checked = false;
        ff.WEP64_AdvWirelessSetupKey3.checked = false;
        ff.WEP64_AdvWirelessSetupKey4.checked = false;
        ff.WEP128_AdvWirelessSetupKey1.checked = false;
        ff.WEP128_AdvWirelessSetupKey2.checked = false;
        ff.WEP128_AdvWirelessSetupKey3.checked = false;
        ff.WEP128_AdvWirelessSetupKey4.checked = false;

        //WEP KEY SELECT
        if (ff.NumAdvWirelessSetupKey1.checked == true)
        {
            ff.WEP64_AdvWirelessSetupKey1.checked  = true;
            ff.WEP128_AdvWirelessSetupKey1.checked = true;
        }
        else if (ff.NumAdvWirelessSetupKey2.checked == true)
        {
            ff.WEP64_AdvWirelessSetupKey2.checked  = true;
            ff.WEP128_AdvWirelessSetupKey2.checked = true;
        }
        else if (ff.NumAdvWirelessSetupKey3.checked == true)
        {
            ff.WEP64_AdvWirelessSetupKey3.checked  = true;
            ff.WEP128_AdvWirelessSetupKey3.checked = true;
        }
        else if (ff.NumAdvWirelessSetupKey4.checked == true)
        {
            ff.WEP64_AdvWirelessSetupKey4.checked  = true;
            ff.WEP128_AdvWirelessSetupKey4.checked = true;
        }
			
        ff.WPAPSK_WpaPreSharedKey1.value = ff.NumWpaPreSharedKey.value;
        ff.WPAPSK_WpaPreSharedKey2.value = ff.NumWpaPreSharedKey.value;
        ff.WPAPSK_WpaPreSharedKey3.value = ff.NumWpaPreSharedKey.value;
        // Nick 20120911
        ff.WPAPSK_WpaPreSharedKey1_hide.value = ff.NumWpaPreSharedKey.value;
        ff.WPAPSK_WpaPreSharedKey2_hide.value = ff.NumWpaPreSharedKey.value;
        ff.WPAPSK_WpaPreSharedKey3_hide.value = ff.NumWpaPreSharedKey.value;
        // Nick 20120911
        //WPA
        ff.WPA_RadiusServer.value = ff.NumRadiusServer.value;
        ff.WPA_RadiusPort.value = ff.NumRadiusPort.value;
        ff.WPA_RadiusKey.value = ff.NumRadiusKey.value;

        //WPA2-PSK
        ff.WPA2PSK_WpaPreSharedKey.value = ff.NumWpaPreSharedKey.value;

        //WPA2
        ff.WPA2_RadiusServer.value = ff.NumRadiusServer.value;
        ff.WPA2_RadiusPort.value = ff.NumRadiusPort.value;
        ff.WPA2_RadiusKey.value = ff.NumRadiusKey.value;

        //802.1xradius
        ff.WL8021x_RadiusServer.value = ff.NumRadiusServer.value;
        ff.WL8021x_RadiusPort.value = ff.NumRadiusPort.value;
        ff.WL8021x_RadiusKey.value = ff.NumRadiusKey.value;

        /* table none/block */
    $('#HrSecDisable').show();
        if (Opt1.checked == true)
        {
            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.di</length 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
        $('#HrSecDisable').hide();
        }
		else if (Opt2.checked == true)
		{
            var WepMode = ff.NumWEP64v128Selector.value;
            if(WepMode != 0 && WepMode != 1) //When Wep is off
            {       
                WepMode = 0;   //display Wep 64-bit in default 
            }

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'block';
            WEP64v128SelectorChange(WepMode);
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';

            ff.NumWL8021xAuthentication.value = 0;
		}
        else if (Opt3.checked == true)
        {
            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'block';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
        }
        else if (Opt4.checked == true)
        {
            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'block';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';		
        }
        else if (Opt5.checked == true)
        {
            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'block';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
        }
        else if (Opt6.checked == true)
        {
            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'block';
            ff.NetgearEncryptionWpa2.value=ff.NumNetgearWpaEncryption.value;
            NetgearEncryptionWpa2SelectorChange();
        }
    }   
}

function selectoption(tt)
{
    /* declare */
    
    $('#HrSecDisable').show();
    var ff=window.document.Numwifi;
//    var Opt1=ff.NumNetgearSecOption1;
//    var Opt2=ff.NumNetgearSecOption2;
//    var Opt3=ff.NumNetgearSecOption3;
//    var Opt4=ff.NumNetgearSecOption4;
//    var Opt5=ff.NumNetgearSecOption5;
//    var Opt6=ff.NumNetgearSecOption6;
var Opt1=window.document.Numwifi.NumNetgearSecOption[0];
var Opt2=window.document.Numwifi.NumNetgearSecOption[1];
var Opt3=window.document.Numwifi.NumNetgearSecOption[2];
var Opt4=window.document.Numwifi.NumNetgearSecOption[3];
var Opt5=window.document.Numwifi.NumNetgearSecOption[4];
var Opt6=window.document.Numwifi.NumNetgearSecOption[5];
    //ff.NumNetgearSecOption=tt;
    
    show80211nMode(tt);
     
    if(tt==0)
    {
            /* else is non-checked */
            Opt1.checked=true;
            Opt2.checked=false;
            Opt3.checked=false;
            Opt4.checked=false;
            Opt5.checked=false;
            Opt6.checked=false;

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
        $('#HrSecDisable').hide();
    }
    else if(tt==1)
    {
            /* else is non-checked */
            Opt1.checked=false;
            Opt2.checked=true;
            Opt3.checked=false;
            Opt4.checked=false;
            Opt5.checked=false;
            Opt6.checked=false;
            var WepMode = ff.NumWEP64v128Selector.value;
            if(WepMode != 0 && WepMode != 1) //When Wep is off
            {
                 WepMode = 0;   //display Wep 64-bit in default 
            }

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'block';
            WEP64v128SelectorChange(WepMode);
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';

            ff.NumWL8021xAuthentication.value = 0;
    }
    else if(tt==2)
    {
            /* else is non-checked */
            Opt1.checked=false;
            Opt2.checked=false;
            Opt3.checked=true;
            Opt4.checked=false;
            Opt5.checked=false;
            Opt6.checked=false;

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'block';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
    }
    else</length3)
    {
            /* else is non-checked */
            Opt1.checked=false;
            Opt2.checked=false;
            Opt3.checked=false;
            Opt4.checked=true;
            Opt5.checked=false;
            Opt6.checked=false;

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'block';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
            //document.getElementById("table_WL8021xRadius").style.display    = 'none';
    }
    else if(tt==4)
    {
            /* else is non-checked */
            Opt1.checked=false;
            Opt2.checked=false;
            Opt3.checked=false;
            Opt4.checked=false;
            Opt5.checked=true;
            Opt6.checked=false;
        /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'block';
            document.getElementById("table_WPA2PSK").style.display = 'none';
            document.getElementById("table_WPA2").style.display    = 'none';
            //document.getElementById("table_WL8021xRadius").style.display    = 'none';
    }
    else if(tt==5)
    {
            /* else is non-checked */
            Opt1.checked=false;
            Opt2.checked=false;
            Opt3.checked=false;
            Opt4.checked=false;
            Opt5.checked=false;
            Opt6.checked=true;

            /* table none/block */
            document.getElementById("table_WEP").style.display     = 'none';
            document.getElementById("table_WEP64").style.display   = 'none';
            document.getElementById("table_WEP128").style.display   = 'none';
            document.getElementById("table_WPAPSKTKIP").style.display  = 'none';
            document.getElementById("table_WPA2PSKAES").style.display  = 'none';
            document.getElementById("table_COMBINE").style.display     = 'none';
            document.getElementById("table_WPA2").style.display    = 'block';
            NetgearEncryptionWpa2SelectorChange();
    }
}

function isFormElement(name)
{
    var isExists = false;
    for(i=0; i<document.forms[1].elements.length;i++)
    {
        if(document.forms[1].elements[i].name == name)
        {
            isExists = true;
            break;
        }
    }

    	return (document.forms[1].elements[i].value);
}

function submit_data(opt)
{
    var ff=window.document.Numwifi;
    var lanIp = ff.LanIp.value;
    var broadcastIp = ff.BroadcastIp.value;
//    var Opt1=ff.NumNetgearSecOption1;
//    var Opt2=ff.NumNetgearSecOption2;
//    var Opt3=ff.NumNetgearSecOption3;
//    var Opt4=ff.NumNetgearSecOption4;
//    var Opt5=ff.NumNetgearSecOption5;
//    var Opt6=ff.NumNetgearSecOption6;
var Opt1=window.document.Numwifi.NumNetgearSecOption[0];
var Opt2=window.document.Numwifi.NumNetgearSecOption[1];
var Opt3=window.document.Numwifi.NumNetgearSecOption[2];
var Opt4=window.document.Numwifi.NumNetgearSecOption[3];
var Opt5=window.document.Numwifi.NumNetgearSecOption[4];
var Opt6=window.document.Numwifi.NumNetgearSecOption[5];
    var WEP64Str  = 'NumWEP64_AdvWirelessSetupWepKey';
    var WEP128Str = 'NumWEP128_AdvWirelessSetupWepKey';

    if(ff.NetgearClosedNetworkTemp.checked == true)
    {
        ff.NumNetgearClosedNetwork.value = 1;
    }
    else
    {
        ff.NumNetgearClosedNetwork.value = 0;
    }
        
    if (ff.NumServiceSetIdentifier.disabled == false)
    {
        if(ff.NumServiceSetIdentifier.value=="") 
        {
            alert(WarningSsidBlank);
            return false;
        }

        if ( !isAcceptedString(ff.NumServiceSetIdentifier.value) )
        {   	  
             alert(WarningInvalidSsid);
             return false;
        } 

        if (Opt1.checked == true)  // Disable
        {
            // when the security mode is not WEP-64bit or WEP-128bit, Authentication have to change to "Open system or Shared key" and 802.1x must disabled
            ff.NumAuthentication.options[0].selected = true; 
        }  
        else if (Opt2.checked == true)  //WEP
        {
             //default
            ff.NumAdvWirelessSetupKey1.checked = false;
            ff.NumAdvWirelessSetupKey2.checked = false;
            ff.NumAdvWirelessSetupKey3.checked = false;
            ff.NumAdvWirelessSetupKey4.checked = false;

            ff.NumWEP64v128Selector.value = document.getElementById("WEP64v128Selector1").value;

            //WEP KEY SELECT
            if (ff.NumWEP64v128Selector.value == 0)    //Wep 64-bit
            {
                if (ff.WEP64_AdvWirelessSetupKey1.checked == true)
                {
                    ff.NumAdvWirelessSetupKey1.checked = true;
                }
                else if (ff.WEP64_AdvWirelessSetupKey2.checked == true)
                {
                    ff.NumAdvWirelessSetupKey2.checked = true;
                }                
                else if (ff.WEP64_AdvWirelessSetupKey3.checked == true)
                {
                    ff.NumAdvWirelessSetupKey3.checked = true;
                }
                else if (ff.WEP64_AdvWirelessSetupKey4.checked == true)
                {
                    ff.NumAdvWirelessSetupKey4.checked = true;
                }
            }
            else if (ff.NumWEP64v128Selector.value == 1)    //Wep 128-bit
            {
                if (ff.WEP128_AdvWirelessSetupKey1.checked == true)
                {
                    ff.NumAdvWirelessSetupKey1.checked = true;
                }
                else if (ff.WEP128_AdvWirelessSetupKey2.checked == true)
                {
                    ff.NumAdvWirelessSetupKey2.checked = true;
                }                
                else if (ff.WEP128_AdvWirelessSetupKey3.checked == true)
                {
                    ff.NumAdvWirelessSetupKey3.checked = true;
                }
                else if (ff.WEP128_AdvWirelessSetupKey4.checked == true)
                {
                    ff.NumAdvWirelessSetupKey4.checked = true;
                }
            }

            /*	checked WEP Key would enter 5 ASCII characters or 10 hexadecimal digits for a 64-bit key */
            /*	and 13 ASCII characters or 26 hexadecimal digits for a 128-bit key. */
            /*	add by Jessica on 07/20/05'*/
            /*  No Support ASCII key,(5 characters inputs), Jamie 2006/04/11 */


            if(ff.NumWEP64v128Selector.value == 0)
            {
                for (j = 1; j < 5; j++)
                {
                    var sWEP64Str  = isFormElement(WEP64Str + j);
                    if (!(sWEP64Str.length == 10))
                    {
                        alert(WarningWep64KeyInvalid);
                        SetFormElementsFocus(WEP64Str + j);
                        return false;
                    }
                }
            }
            else if(ff.NumWEP64v128Selector.value == 1)
            {
                for (j = 1; j < 5; j++)
                {
                    var sWEP128Str  = isFormElement(WEP128Str + j);
                    if (!(sWEP128Str.length == 26))
                    {
                        </documentingWep128KeyInvalid);
                        SetFormElementsFocus(WEP128Str + j);
                        return false;
                    }
                }
            }
        }
        else if (Opt3.checked == true)  // WPA-PSK [TKIP]
        {
            // when the security mode is not WEP-64bit or WEP-128bit, Authentication have to change to "Open system or Shared key" and 802.1x must disabled
            ff.NumAuthentication.options[0].selected = true;
            if($('input[name=NumWiFiKeyProtection]').val() == 0)
            { 
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey1.value;
            }
            else
            {
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey1_hide.value;
            }
            //Encryption (WPA-WPA2) Key

            //value checked
            if ((ff.NumWpaPreSharedKey.value.length < 8) || (ff.NumWpaPreSharedKey.value.length > 64))
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey1');
                return false;
            }

            if(!isAcceptedString(ff.NumWpaPreSharedKey.value))
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey1');
                return false;
            }
        }
        else if (Opt4.checked == true)  //WPA2-PAK [AES]
        {
            // when the security mode is not WEP-64bit or WEP-128bit, Authentication have to change to "Open system or Shared key" and 802.1x must disabled
            ff.NumAuthentication.options[0].selected = true;
            if($('input[name=NumWiFiKeyProtection]').val() == 0)
            { 
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey2.value;
            }
            else
            {
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey2_hide.value;
            }

            //value checked
            if ((ff.NumWpaPreSharedKey.value.length < 8) || (ff.NumWpaPreSharedKey.value.length > 64))
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey2');
                return false;
            }

            if(!isAcceptedString(ff.NumWpaPreSharedKey.value))
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey2');
                return false;
            }
        }
        else if (Opt5.checked == true)  //WPA-PSK [TKIP] + WPA2-PSK [AES]
        {
            // when the security mode is not WEP-64bit or WEP-128bit, Authentication have to change to "Open system or Shared key" and 802.1x must disabled
            ff.NumAuthentication.options[0].selected = true;
            if($('input[name=NumWiFiKeyProtection]').val() == 0)
            { 
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey3.value;
            }
            else
            {
                ff.NumWpaPreSharedKey.value = ff.WPAPSK_WpaPreSharedKey3_hide.value;
            }

            //value checked
            if ((ff.NumWpaPreSharedKey.value.length < 8) || (ff.NumWpaPreSharedKey.value.length > 64))
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey3');
                return false;
            }

            if(!isAcceptedString(ff.NumWpaPreSharedKey.value))				
            {
                alert(WarningPreSharedKeyIsInvalid);
                SetFormElementsFocus('WPAPSK_WpaPreSharedKey3');
                return false;
            }
        }
        else if (Opt6.checked == true)  //WPA/WPA2 Enterprise
        {
            // when the security mode is not WEP-64bit or WEP-128bit, Authentication have to change to "Open system or Shared key" and 802.1x must disabled
            ff.NumAuthentication.options[0].selected = true; 
            ff.NumRadiusServer.value = ff.WPA2_RadiusServer.value;
            ff.NumRadiusPort.value = ff.WPA2_RadiusPort.value;
            ff.NumRadiusKey.value = ff.WPA2_RadiusKey.value;
            //Encryption (WPA-WPA2) Key
            ff.NumNetgearWpaEncryption.value=ff.NetgearEncryptionWpa2.value;

            //value checked
            if (ff.WPA2_RadiusServer.value == lanIp || ff.WPA2_RadiusServer.value == "192.168.100.1" || ff.WPA2_RadiusServer.value == broadcastIp)
            {
                alert(WarningCannotSetDomainAsThisIpAddress);
                return false;
            }
            if (!isValidIP(ff.NumRadiusServer.value))
            {
                alert(WarningPrimaryRadiusServerIpAddressIsInvalid);
                SetFormElementsFocus('WPA2_RadiusServer');
                return false;
            }
            else if (!isValidPortRange(ff.NumRadiusPort.value))
            {
                alert(WarningRadiusPortIsInvalid);
                SetFormElementsFocus('WPA2_RadiusPort');
                return false;
            }
            else if (ff.NumRadiusKey.value == "")
            {
                alert(WarningRadiusKeyBlank);
                SetFormElementsFocus('WPA2_RadiusKey');
                return false;
            }
            else
            {

            }
        }
    }

    var Speedmode = ff.NumConnectSpeedMode.value;
    var NSideband = ff.NumNSideband.value;
/*TD#204
    if (NSideband == 0 && Speedmode == 300)
    {
         alert(WarningCanNotSelectSidebinadAsNoneIn300MbMode);
         return false;
    }
*/
/*TD#204*/
    if (Speedmode == 300)
    {
        var ChannelNumber=ff.NumChannelNumber.value;
        if (ChannelNumber <= 6)
        {
            ff.NumNSideband.value=-1;//lower
          //alert("JDBG 1=");
          //alert(ff.NumNSideband.value);

       }
        else
        {
            ff.NumNSideband.value=1;//upper
          //alert("JDBG 2=");
          //alert(ff.NumNSideband.value);
        }
    }
    else
    {
        ff.NumNSideband.value=0;//lower
          //alert("JDBG 3=");
          //alert(ff.NumNSideband.value);
    }


    // Apply btn
    ff.WiFiAction.value= 3; // apply
    return true;
}

function WEP64_selectKey(tt)
{
    var ff=window.document.Numwifi;
    if(tt==1)
    {
        ff.WEP64_AdvWirelessSetupKey1.checked=true;
        ff.WEP64_AdvWirelessSetupKey2.checked=false;
        ff.WEP64_AdvWirelessSetupKey3.checked=false;
        ff.WEP64_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==2)
    {
        ff.WEP64_AdvWirelessSetupKey1.checked=false;
        ff.WEP64_AdvWirelessSetupKey2.checked=true;
        ff.WEP64_AdvWirelessSetupKey3.checked=false;
        ff.WEP64_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==3)
    {
        ff.WEP64_AdvWirelessSetupKey1.checked=false;
        ff.WEP64_AdvWirelessSetupKey2.checked=false;
        ff.WEP64_AdvWirelessSetupKey3.checked=true;
        ff.WEP64_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==4)
    {
        ff.WEP64_AdvWirelessSetupKey1.checked=false;
        ff.WEP64_AdvWirelessSetupKey2.checked=false;
        ff.WEP64_AdvWirelessSetupKey3.checked=false;
        ff.WEP64_AdvWirelessSetupKey4.checked=true;
    }
}

function WEP128_selectKey(tt)
{
    var ff=window.document.Numwifi;
    if(tt==1)
    {
        ff.WEP128_AdvWirelessSetupKey1.checked=true;
        ff.WEP128_AdvWirelessSetupKey2.checked=false;
        ff.WEP128_AdvWirelessSetupKey3.checked=false;
        ff.WEP128_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==2)
    {
        ff.WEP128_AdvWirelessSetupKey1.checked=false;
        ff.WEP128_AdvWirelessSetupKey2.checked=true;
        ff.WEP128_AdvWirelessSetupKey3.checked=false;
        ff.WEP128_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==3)
    {
        ff.WEP128_AdvWirelessSetupKey1.checked=false;
        ff.WEP128_AdvWirelessSetupKey2.checked=false;
        ff.WEP128_AdvWirelessSetupKe</document=true;
        ff.WEP128_AdvWirelessSetupKey4.checked=false;
    }
    else if(tt==4)
    {
        ff.WEP128_AdvWirelessSetupKey1.checked=false;
        ff.WEP128_AdvWirelessSetupKey2.checked=false;
        ff.WEP128_AdvWirelessSetupKey3.checked=false;
        ff.WEP128_AdvWirelessSetupKey4.checked=true;
    }
}

function AuthenticationChange()
{
    var ff=window.document.Numwifi;
    if(ff.NumAuthentication.value==1)
    {
        ff.NumWL8021xAuthentication.disabled=true;
    }
    else
    {
        ff.NumWL8021xAuthentication.disabled=false;
    }

    if(ff.NumWL8021xAuthentication.value==1)
    {
        ff.NumAuthentication.disabled=true;
        ff.WEP64_AdvWirelessSetupKey1.disabled=true;
        ff.NumWEP64_AdvWirelessSetupWepKey1.disabled=true;
        ff.WEP64_AdvWirelessSetupKey4.disabled=true;
        ff.NumWEP64_AdvWirelessSetupWepKey4.disabled=true;
        ff.WEP128_AdvWirelessSetupKey1.disabled=true;
        ff.NumWEP128_AdvWirelessSetupWepKey1.disabled=true;
        ff.WEP128_AdvWirelessSetupKey4.disabled=true;
        ff.NumWEP128_AdvWirelessSetupWepKey4.disabled=true;
        document.getElementById("table_WL8021xRadius").style.display = 'block';
    }
    else
    {
        ff.NumAuthentication.disabled=false;
        ff.WEP64_AdvWirelessSetupKey1.disabled=false;
        ff.NumWEP64_AdvWirelessSetupWepKey1.disabled=false;
        ff.WEP64_AdvWirelessSetupKey4.disabled=false;
        ff.NumWEP64_AdvWirelessSetupWepKey4.disabled=false;
        ff.WEP128_AdvWirelessSetupKey1.disabled=false;
        ff.NumWEP128_AdvWirelessSetupWepKey1.disabled=false;
        ff.WEP128_AdvWirelessSetupKey4.disabled=false;
        ff.NumWEP128_AdvWirelessSetupWepKey4.disabled=false;
        document.getElementById("table_WL8021xRadius").style.display = 'none';
    }
}

function checkRadio(radioObj, val)
{
    var i;
    for(i=0; i < radioObj.length; i++)
    {
        if(radioObj[i].value == val)
        {
            radioObj[i].checked = true;
            break;
        }
    }
}

function OnLoadScript()
{
    var ff=window.document.Numwifi;
    var i;
    
    if(ff.NetgearClosedNetworkTemp.checked == true)
    {
        ff.NumNetgearClosedNetwork.value = 1;
    }
    else
    {
        ff.NumNetgearClosedNetwork.value = 0;
    }
    
    checkRadio(ff.NumWiFiKeyProtection1, ff.NumWiFiKeyProtection.value);
    checkRadio(ff.NumWiFiKeyProtection2, ff.NumWiFiKeyProtection.value);
    checkRadio(ff.NumWiFiKeyProtection3, ff.NumWiFiKeyProtection.value);
}

function ChangeSpeedMode()
{
/*TD#204
    var ff=window.document.Numwifi;

    var Speedmode=ff.NumConnectSpeedMode.value;
    if (Speedmode == 300)
    {
        ff.NumNSideband.disabled=false;

        ff.NumNSideband.options[0].value=-1;
        ff.NumNSideband.options[0].text=Rg802dot11SideBandLower;

        var sideBandOption = new Option(Rg802dot11SideBandUpper, 1);
        ff.NumNSideband.options[1] = sideBandOption;
        
    }
    else if( Speedmode == 144 )
    {
        ff.NumNSideband.disabled=true; 

        ff.NumNSideband.options[0].value=0;
        ff.NumNSideband.options[0].text=Rg802dot11None;
        ff.NumNSideband.options[1]=null;
        ff.NumNSideband.disabled=true;
    }
    else if (Speedmode == 54)
    {
        ff.NumNSideband.disabled=true;

        ff.NumNSideband.options[0].value=0;
        ff.NumNSideband.options[0].text=Rg802dot11None;
        ff.NumNSideband.options[1]=null;
        ff.NumNSideband.disabled=true;
    }
    else
    {
      return false;
    }
*/

    return true;
}

function CheckWifi80211nMode()
{
    var ff=window.document.Numwifi;

    var wifi80211nMode=ff.NumNetgear80211nMode.value;
    var wifi80211nSideBand=ff.NumNSideband.value;

    if (wifi80211nMode == 1)
    {
        ff.NumConnectSpeedMode.options[0].value=144;
        ff.NumConnectSpeedMode.options[0].text='144 Mbps';

        var speedOption = new Option('300 Mbps', 300);
        ff.NumConnectSpeedMode.options[1]=speedOption;

        //ff.NumNSideband.options[0].value=-1;
        //ff.NumNSideband.options[0].text=Rg802dot11SideBandLower;

        //var sideBandOption = new Option(Rg802dot11SideBandUpper, 1);
        //ff.NumNSideband.options[1] = sideBandOption;
    }
    else
    {
        ff.NumConnectSpeedMode.options[0].value=54;
        ff.NumConnectSpeedMode.options[0].text='54 Mbps';
        ff.NumConnectSpeedMode.options[1]=null;

        //ff.NumNSideband.options[0].value=0;
        //ff.NumNSideband.options[0].text=Rg802dot11None;
        //ff.NumNSideband.options[1]=null;
        //ff.NumNSideband.disabled=true;
    }

    return true;
}
function show80211nMode(selectedSecurityItem)
{
    var ff=window.document.Numwifi;
    
    if (selectedSecurityItem == 1 || selectedSecurityItem == 2)
    {
        ff.NumNetgear80211nMode.options[0].value=0;
        ff.NumNetgear80211nMode.options[0].text=option80211nMode[0];
        ff.NumNetgear80211nMode.options[1]=null;
    }
    else
    {
        ff.NumNetgear80211nMode.options[0].value=1;
        ff.NumNetgear80211nMode.options[0].text=option80211nMode[1];

        var speedOption = new Option(option80211nMode[0], 0);
        ff.NumNetgear80211nMode.options[1]=speedOption;
    }

    CheckWifi80211nMode();
    
    return true;
}

function CheckNSideBand()
{
    var ff=window.document.Numwifi;
    var Speedmode=ff.NumConnectSpeedMode.value;

    if (Speedmode == 300)
    {
        return true;
    }
    else
    {
        alert(WarningChangeOnlyIn300Mbps);
        return false;
    }
}

function onload_data()
{
    var NetgearUserLevel=255;
    var UserLanguage=2;
    var ff=window.document.Numwifi;
    if (NetgearUserLevel== 255 )
    {
         //Show in the MSO Access

        if(UserLanguage == 0) // English 
        {
            //loadhelp("help","NumRg802dot11BasicCfg_En");
        }
        else
        {
            //loadhelp("help","NumRg802dot11BasicCfg_Fr");
        }
    }
    else
    {
/*    
        if(ff.NumNetgearSecOption6.checked == false)
        {
            document.getElementById("idNetgearSecOption6").style.display = 'none';
        }    
        else
        {
            document.getElementById("idNetgearSecOption6").style.display = 'block';
        }

        ff.NumNetgearSecOption6.disabled = true;
        ff.NetgearEncryptionWpa2.disabled = true;
        ff.WPA2_RadiusServer.disabled = true;
        ff.WPA2_RadiusPort.disabled = true;
        ff.WPA2_RadiusKey.disabled = true;
*/
        if(UserLanguage == 0) // English 
        {
            //loadhelp("help","NumRg802dot11BasicCfg_En_Admin");
        }
        else
        {
            //loadhelp("help","NumRg802dot11BasicCfg_Fr_Admin");
        }
    }
}

function ClickWiFiSecPro(val,Num)
{
    var ff=window.document.Numwifi;
    
    if (val == 0)
    {
        //ff.WiFiAction.value= 4; // show
        $('input[name=WPAPSK_WpaPreSharedKey'+Num+']').show();
        $('input[name=WPAPSK_WpaPreSharedKey'+Num+'_hide]').hide();
    }
    else
    {
        //ff.WiFiAction.value= 5; // hide.
        $('input[name=WPAPSK_WpaPreSharedKey'+Num+'_hide]').show();
        $('input[name=WPAPSK_WpaPreSharedKey'+Num+']').hide();
    }
    
	ff.NumWiFiKeyProtection.value = val;

    // Nick, just submit
    //ff.submit();
/*
	if(submit_data() == true)
	{
	    ff.submit();
	}
*/
}

function restoreDefaults()
{
    var ff=window.document.Numwifi;
    
    ff.NumWiFiDefault.value = 1;

    // Nick 20120911, restore default
    ff.WiFiAction.value= 6;
	return true;
}

function ClickCancel()
{
    var ff=window.document.Numwifi;
    
    ff.NumWiFiCancel.value = 1;
	
	return true;
}

function wifi_sousmenu2onload() {

    if(document.getElementById("sousmenu2").style.display == 'inline')
    {
	location.href="Numwifi.htm";
    }
}

-->
</script>
</head>
<body onload='checkDisable();OnLoadScript(); onload_data();'>
<div id="num-page-background-simple-gradient">
    </div>
    <div id="num-main">
      <div class="num-Sheet">
            <div class="num-Sheet-tl"></div>
            <div class="num-Sheet-tr"></div>
            <div class="num-Sheet-bl"></div>
            <div class="num-Sheet-br"></div>
            <div class="num-Sheet-tc"></div>
            <div class="num-Sheet-bc"></div>
            <div class="num-Sheet-cl"></div>
            <div class="num-Sheet-cr"></div>
            <div class="num-Sheet-cc"></div>
            <div class="num-Sheet-body">
                <div class="num-Header">
                    <a href="javascript: openPage('Numconfig.htm','false')" tppabs="Numconfig.htm"><div class="num-Header-jpeg"></div></a></div>
                <ul id="MenuBar1" class="MenuBarHorizontal">
                  <li><a href="javascript: openPage('Numreseau.htm','true')" tppabs="Numreseau.htm"><script type="text/javascript">document.write(MenuNetwork);</script></a></li>
                  <li><a href="javascript: openPage('Numwifi.htm','true')" tppabs="Numwifi.htm" class="menuactive"><script type="text/javascript">document.write(MenuWifi);</script></a></li>
                  <li><a href="javascript: openPage('Nummultimedia.htm','false')" tppabs="Nummultimedia.htm"><script type="text/javascript">document.write(MenuMultimedia);</script></a></li>
                  <li><a href="javascript: openPage('Numtelephonie.htm','true')" tppabs="Numtelephonie.htm"><script type="text/javascript">document.write(MenuTelephone);</script></a></li>
                  <li><a href="javascript: openPage('Numsecurite.htm','false')" tppabs="Numsecurite.htm"><script type="text/javascript">document.write(MenuSecurity);</script></a></li>
                  <li><a href="javascript: openPage('Numsauvegarde.htm','true')"><script type="text/javascript">document.write(MenuBackup);</script></a></li>
				          <li><a href="javascript: openPage('logout.htm','true')" tppabs="logout.htm" class="menulogout"><script type="text/javascript">document.write(MenuLogout);</script></a></li> 
          </ul>  
                <div class="cleared"></div>                
<div class="num-contentLayout">
<div class="num-sidebar1">
                        <div class="num-Block">
                            <div class="num-Block-body">
                                        <div class="num-BlockHeader">
                                            <div class="num-header-tag-icon">
                                                <div class="t">MENU GENERAL</div>
                                            </div>
                                        </div>
                                        <div class="num-BlockHeader">
 <div class="num-header-tag-icon">
                                              <FORM action=/goform/parametre_lang method=post name=form class="fontestableau" id=form>  
                                              <div class="t"><script type="text/javascript">document.write(languages);</script>
                                                  <select name="select" id="select" onchange="submit();">
                                                    <option value ="NumLanguageFr">Français</option>
                                                    <option value ="NumLanguageEn">English</option>
                                                  </select>
                                              </div>
                                              </FORM>
                                            </div>
                                            
                                        </div><div class="num-BlockContent">

                                            <div class="num-BlockContent-body">
                                                <div>
                                                <div id="menu">
	<div class="menu" id="menu1">
		<a href="javascript: openPage('Numconfig.htm','false')" tppabs="Numconfig.htm" ><script type="text/javascript">document.write(MtaWelcome);</script></a>
	</div>

	<div class="menu" id="menu2" onclick="afficheMenu(this)">
		<a class="num-button2-null" onclick="wifi_sousmenu2onload();" >
			<script type="text/javascript">document.write(BasicSettings);</script>
		</a>
	</div>
	<div id="sousmenu2" style="display:inline">
		<div class="sousmenu">
			<a href="Numwifi_pb1_wps.htm" tppabs="Numwifi_pb1_wps.htm" >WPS</a>
			
		</div>
		<div class="sousmenu" id="guestNetworkMenu">
			<a href="Numwifi_pa2_reseauinvite.htm" tppabs="Numwifi_pa2_reseauinvite.htm">
				<script type="text/javascript">document.write(GuestNetwork);</script>
			</a>
		</div>
   	    <div class="sousmenu">
			<a href="Numwifi_pa2_radarwifi.htm" tppabs="Numwifi_pa2_radarwifi.htm">
				<script type="text/javascript">document.write(RadarWiFi);</script>
			</a>
		</div>
		
	</div>
    
	<div class="menu" id="menu3" onclick="afficheMenu(this)">
		<a class="num-button2-null" >
			<script type="text/javascript">document.write(NumAdvanceSetting);</script>
		</a>
	</div>
	<div id="sousmenu3" style="display:none">
		<div class="sousmenu">
			<a href="Numwifi_pa3_configurationavancee.htm" tppabs="Numwifi_pa3_configurationavancee.htm">
				<script type="text/javascript">document.write(AdvancedConfiguration);</script>
			</a>
		</div>
		<div class="sousmenu">
			<a href="Numwifi_pa3_wifimultimedia.htm" tppabs="Numwifi_pa3_wifimultimedia.htm">
				<script type="text/javascript">document.write(NumWifiMultimedia);</script>
			</a>
		</div>
                             
	</div>                 
    
	
</div>

</div>
                                        		<div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="num-Block">
                            <div class="num-Block-body">
                                        <div class="num-BlockHeader">
                                            <div class="num-header-tag-icon">
                                                <div class="t">Important</div>
                                            </div>
                                        </div><div class="num-BlockContent">
                                            <div class="num-BlockContent-tl"></div>
                                            <div class="num-BlockContent-tr"></div>
                                            <div class="num-BlockContent-bl"></div>
                                            <div class="num-BlockContent-br"></div>
                                            <div class="num-BlockContent-tc"></div>
                                            <div class="num-BlockContent-bc"></div>
                                            <div class="num-BlockContent-cl"></div>
                                            <div class="num-BlockContent-cr"></div>
                                            <div class="num-BlockContent-cc"></div>
                                            <div class="num-BlockContent-body">
                                                <div>
                                                  <p><span class="astuces"><img src="astuce.png" tppabs="astuce.png" alt="astuce" width="20" height="16" border="0" /></span> 
                                                  	<script type="text/javascript">document.write(Improtant);</script><br/>
                                                    <br />
                                                  </p>
                                                  <p>
                                                <span class="num-button-wrapper">
                                                	<span class="l"> </span>
                                                	<span class="r"> </span>                                              
                                                    <input type="button" ONCLICK="window.location.href='NumFactoryReset.htm'" class="num-button" value="Restaurer les valeurs d'usine" align="middle"/>                                                </span>  
                                                  </p>
                                            </div>
                                        		<div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                        <div class="num-Block">
                            <div class="num-Block-body">
                                        <div class="num-BlockHeader">
                                            <div class="num-header-tag-icon">
                                                <div class="t">Information</div>
                                            </div>
                                        </div><div class="num-BlockContent">
                                            <div class="num-BlockContent-tl"></div>
                                            <div class="num-BlockContent-tr"></div>
                                            <div class="num-BlockContent-bl"></div>
                                            <div class="num-BlockContent-br"></div>
                                            <div class="num-BlockContent-tc"></div>
                                            <div class="num-BlockContent-bc"></div>
                                            <div class="num-BlockContent-cl"></div>
                                            <div class="num-BlockContent-cr"></div>
                                            <div class="num-BlockContent-cc"></div>
                                            <div class="num-BlockContent-body">
                                                <div>
                                                                  <p><script type="text/javascript">document.write(NumWiFiHelp1);</script></p>
                                                                  <p>&nbsp;</p>
                                                                  <p><script type="text/javascript">document.write(NumWiFiHelp2);</script></p>
                                                                  <p>&nbsp;</p>
                                                                  <p><script type="text/javascript">document.write(NumWiFiHelp3);</script></p>
                                                                  <p>&nbsp;</p>
                                                                  <p><script type="text/javascript">document.write(NumWiFiHelp4);</script></p>

                                              </div>
                                        		<div class="cleared"></div>
                                            </div>
                                        </div>
                        		<div class="cleared"></div>
                            </div>
                        </div>
                     
</div>
<form name=Numwifi action="goform/Numwifi" method=post>
                    <div class="num-content">
                        <div class="num-Post">

                            <div class="num-Post-body">
                        <div class="num-Post-inner">
                                        <h2 class="num-PostHeader">WIFI</h2>
                                        <div class="num-PostContent">
                                          <table width="100%" border="0" cellpadding="0" cellspacing="10">
                                            <tbody>
                                              <tr>
                                                <td><strong><script type="text/javascript">document.write(WirelessAccessPoint);</script></strong></td>
                                              </tr>
                                              <tr id='DisplayDualMode'><td><script type="text/javascript">document.write(wifi_mode);</script>
                                              <select name="NumNetgear80211Mode" onchange="return ApplyWifi80211Mode();">
                                              </td></tr>

                                              <tr>
                                                <td><input type="checkbox" name="NumNetgearEnableWireless" value=1 checked>
                                                  <script type="text/javascript">document.write(EnableWirelessRouterRadio);</script>
                                                  </td>
                                              </tr>
                                              <tr>
                                                <td><input type="checkbox" name="NetgearClosedNetworkTemp" value=1 checked>
                                               <script type="text/javascript">document.write(EnableSsidBroadcast);</script></td>
                                              </tr>
                                              <tr>
                                                <td><script type="text/javascript">document.write(wifi_default_button);</script></td>
                                              </tr>
                                                                                             <tr>
                                                  <td><hr color= <p class="Hline" /></td>
                                                </tr>
                                              
                                            </tbody>
                                          </table>
                                       
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10">
                                              <tbody>
                                                <tr>
                                                  <td><strong><script type="text/javascript">document.write(WirelessNetwork);</script></strong></td>
                                                </tr>
                                                <tr>
                                                  <td><script type="text/javascript">document.write(Rg802dot11NameSsid);</script>:
                                                  <input name="NumServiceSetIdentifier" size="20" maxlength="32" value="XXXX-AD01" /></td>
                                                </tr>        
                                                <tr><td><script type="text/javascript">document.write(Rg802dot11Mode);</script>:&nbsp;&nbsp; 
<select name="NumNetgear80211nMode" onchange="return CheckWifi80211nMode();"> 
<option value="1" selected>11b/g/n</option> 
<option value="0" >b and g only</option> 

                                                <tr><td><script type="text/javascript">document.write(Rg802dot11Power);</script>:&nbsp;&nbsp;
<select name="NumOutputPower" size=1><option value=25 >25%<option value=50 >50%<option value=75 >75%<option value=100 selected>100%</select></td></tr>

                                                
                                              <INPUT type=hidden name=NumNSideband>
                                                <tr><td><script type="text/javascript">document.write(w_mode);</script>: 
<select name="NumConnectSpeedMode" size="1" onchange="return ChangeSpeedMode();"> 
<option value="144"selected>144 Mbps</option> 
<option value="300" >300 Mbps</option> 
</select>&nbsp;</td></tr>
                                              <tr>
													<td><script type="text/javascript">document.write(Rg802dot11ControlChannel);</script>&nbsp;&nbsp; 
<select name="NumChannelNumber"><option value=0 selected>Auto</option><option value=1 >1 </option><option value=2 >2 </option><option value=3 >3 </option><option value=4 >4 </option><option value=5 >5 </option><option value=6 >6 </option><option value=7 >7 </option><option value=8 >8 </option><option value=9 >9 </option><option value=10 >10 </option><option value=11 >11 </option><option value=12 >12 </option><option value=13 >13 </option>  ?? ?? ?? ?? ?
                                                    </select>
                                                    <!--Actif?:? 9-->
                                                    <script type="text/javascript">document.write(Rg802dot11Current);</script>&nbsp;:&nbsp;
                                                    <span id=CurrentChannel>1</span>
													</td>
                                              </tr>
                                              <td><hr color= <p class="Hline" /></td>
                                  </table>
                                                                                        
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_AccessList" style="display:none;">
                                              <tbody>         
											    <tr>
											      <td><strong>Wireless Card Access List</strong></td>
											    </tr>
											    <tr>
											      <td><input type="checkbox" name="NumAccessFilterEnable" value=18 >
											        Turn Access Control On
											        <input type="button" name="OpenAccessFilter" value="Setup Access List" onClick="window.location.href='NumRg802dot11BasicCfg.htm';">
											      </td>
											    </tr>
                                              </tbody>
                                          </table>
                                            
                                           <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_Options">
                                              <tbody>
                                                <tr>
                                                  <td><strong><script type="text/javascript">document.write(Rg802dot11SecurityOptions);</script></strong></td>
                                                </tr>
                                                <tr>
                                                  <td><input type="radio" name="NumNetgearSecOption" value=0 onclick="selectoption(0);" />
                                                    <script type="text/javascript">document.write(Rg802dot11None);</script></td>
                                                </tr>
                                                <tr>
                                                  <td><input type="radio" name="NumNetgearSecOption" value=1 onclick="selectoption(1);" />
                                                    WEP</td>
                                                </tr>
                                                <tr>
                                                  <td><input type="radio" name="NumNetgearSecOption" value=2 onclick="selectoption(2);" />
                                                    WPA-PSK [TKIP]</td>
                                                </tr>
                                                <tr>
                                                  <td><input type="radio" name="NumNetgearSecOption" value=3 onclick="selectoption(3);" />
                                                    WPA2-PSK [AES]</td>
                                                </tr>
                                                <tr>
                                                  <td><input type="radio" name="NumNetgearSecOption" value=4 checked onclick="selectoption(4);" />
                                                    WPA-PSK [TKIP] + WPA2-PSK [AES]</td>
                                                </tr>  
							 <tr id=idNetgearSecOption6 style="display:none">
                                                  <td><input type="radio" name="NumNetgearSecOption" value=5 onClick="selectoption(5);">
                                                  <script type=text/javascript>document.write(Rg802dot11WpaWpa2Enterprise);</script></td>
                                                </tr>
                                                <tr><!--type="radio" name="NumNetgearSecOption6" value=6 --></tr>
                                                <tr id="HrSecDisable">
                                                  <td><hr color= <p class="Hline" /></td>
                                                </tr>
                                              </tbody>
                                          </table>
                                            <!-- Security Encryption(WEP) - Authentication : OpenSystem/ShareKey -->
                                            <input type=hidden name=NumAuthenticationSelector value=0>
                                            <!--<input type=hidden name="NumNetgearSecOption" value=0>-->

                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WEP" style="DISPLAY: none" >
                                              <tbody>
                                                <tr>
                                                  <td><B>WEP</B></td>
                                                </tr>
                                                <tr>
                                                  <td valign=top><script type=text/javascript>document.write(NumAuthType);</script>: 
                                                    <select onchange='AuthenticationChange();' name=NumAuthentication>
                                                        <option value=0 selected><script type=text/javascript>document.write(Rg802dot11WepAuthenticationAuto);</script></option>
                                                        <option value=1><script type=text/javascript>document.write(Rg802dot11WepAuthenticationShare);</script></option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <table width="100%" border="0" cellpadding="0" cellspacing="10" style="DISPLAY: none" >
                                                      <tbody>
                                                        <tr>
                                                          <td>802.1x Authentication: 
                                                            <select onchange='AuthenticationChange();' name=NumWL8021xAuthentication>
                                                              <option value=0 selected><script type="text/javascript">document.write(Rg802dot11Disabled);</script></option>
<option value=1 ><script type="text/javascript">document.write(Rg802dot11Enabled);</script></option>
                                                            </select>
                                                          </td>
                                                        </tr>
                                                      </tbody>
                                                    </table>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td><hr color= <p class="Hline" /></td>
                                                </tr>
                                              </tbody>
                                            </table>                                            
                                            <!-- Encryption (WEP) Key 64-bit or  Key 64-bit selector -->
                                            
                                            <input type=hidden name=NumWEP64v128Selector value=-1>
                                            <!-- Encryption (WEP) Key 64-bit -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WEP64" style="DISPLAY: none" >
                                              <tbody>
                                                <tr>
                                                  <td><strong><script type=text/javascript>document.write(Rg802dot11EncryptionWepKey);</script></strong></td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11WepEncryption);</script>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <select id=WEP64v128Selector1 onchange=WEP64v128SelectorChange(1); name=WEP64v128Selector1>
                                                      <option value=0 selected>WEP (64-bit)</option>
                                                      <option value=1>WEP (128-bit)</option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11WepPassPhrase);</script>
                                                    <input maxLength=26 size=13 name=NumWEP64_WepPassPhrase value=>
                                                    <script type="text/javascript">document.write(Rg802dot11Wep64GenerateKeyButton);</script>
                                                    <input type=hidden name=NumWEP64_GenerateWepKeys value=>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP64_selectKey(1); type=radio value=1 name=WEP64_AdvWirelessSetupKey1>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    1 <input id=64KeyWidth onkeyup="this.form.NumWEP64_AdvWirelessSetupWepKey1.value=this.form.NumWEP64_AdvWirelessSetupWepKey1.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP64_AdvWirelessSetupWepKey1, 0)" 
                                                        maxLength=10 size=10 value=1111111111  name=NumWEP64_AdvWirelessSetupWepKey1>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP64_selectKey(2); type=radio value=2 name=WEP64_AdvWirelessSetupKey2>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    2 <input id=64KeyWidth onkeyup="this.form.NumWEP64_AdvWirelessSetupWepKey2.value=this.form.NumWEP64_AdvWirelessSetupWepKey2.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP64_AdvWirelessSetupWepKey2, 0)" 
                                                      maxLength=10 size=10 value=1111111111  name=NumWEP64_AdvWirelessSetupWepKey2>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP64_selectKey(3); type=radio value=3 name=WEP64_AdvWirelessSetupKey3>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    3 <input id=64KeyWidth onkeyup="this.form.NumWEP64_AdvWirelessSetupWepKey3.value=this.form.NumWEP64_AdvWirelessSetupWepKey3.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP64_AdvWirelessSetupWepKey3, 0)" 
                                                      maxLength=10 size=10 value=1111111111  name=NumWEP64_AdvWirelessSetupWepKey3>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP64_selectKey(4); type=radio value=4 name=WEP64_AdvWirelessSetupKey4>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    4 <input id=64KeyWidth onkeyup="this.form.NumWEP64_AdvWirelessSetupWepKey4.value=this.form.NumWEP64_AdvWirelessSetupWepKey4.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP64_AdvWirelessSetupWepKey4, 0)" 
                                                      maxLength=10 size=10 value=1111111111  name=NumWEP64_AdvWirelessSetupWepKey4>
                                                  </td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- Encryption (WEP) Key 128-bit -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WEP128" style="DISPLAY: none" >
                                              <tbody>
                                                <tr>
                                                  <td><strong>
                                                  <script type=text/javascript>document.write(Rg802dot11EncryptionWepKey);</script>
                                                    </strong>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11WepEncryption);</script>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <select id=WEP64v128Selector2 onchange=WEP64v128SelectorChange(0); name=WEP64v128Selector2>
                                                      <option value=0 selected>WEP (64-bit)</option>
                                                      <option value=1>WEP (128-bit)</option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11WepPassPhrase);</script>
                                                    <input maxLength=26 size=13 name=NumWEP128_WepPassPhrase value=>
                                                    <script type="text/javascript">document.write(Rg802dot11Wep128GenerateKeyButton);</script>
                                                    <input type=hidden name=NumWEP128_GenerateWepKeys value=>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP128_selectKey(1); type=radio value=1 name=WEP128_AdvWirelessSetupKey1>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    1 <input id=128KeyWidth onkeyup="this.form.NumWEP128_AdvWirelessSetupWepKey1.value=this.form.NumWEP128_AdvWirelessSetupWepKey1.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP128_AdvWirelessSetupWepKey1, 1)" 
                                                      maxLength=26 size=17 value=f7ed2ba0143e52414e628cc4ba name=NumWEP128_AdvWirelessSetupWepKey1>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP128_selectKey(2); type=radio value=2 name=WEP128_AdvWirelessSetupKey2>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    2 <input id=128KeyWidth onkeyup="this.form.NumWEP128_AdvWirelessSetupWepKey2.value=this.form.NumWEP128_AdvWirelessSetupWepKey2.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP128_AdvWirelessSetupWepKey2, 1)" 
                                                      maxLength=26 size=17 value=f7ed2ba0143e52414e628cc4ba name=NumWEP128_AdvWirelessSetupWepKey2>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP128_selectKey(3); type=radio value=3 name=WEP128_AdvWirelessSetupKey3>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    3 <input id=128KeyWidth onkeyup="this.form.NumWEP128_AdvWirelessSetupWepKey3.value=this.form.NumWEP128_AdvWirelessSetupWepKey3.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP128_AdvWirelessSetupWepKey3, 1)" 
                                                      maxLength=26 size=17 value=f7ed2ba0143e52414e628cc4ba name=NumWEP128_AdvWirelessSetupWepKey3>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input onclick=WEP128_selectKey(4); type=radio value=4 name=WEP128_AdvWirelessSetupKey4>
                                                    <script type=text/javascript>document.write(WepKey);</script>
                                                    4 <input id=128KeyWidth onkeyup="this.form.NumWEP128_AdvWirelessSetupWepKey4.value=this.form.NumWEP128_AdvWirelessSetupWepKey4.value.replace(/[^a-f0-9A-F]/g,'');checkeKeyLen(this.form.NumWEP128_AdvWirelessSetupWepKey4, 1)" 
                                                      maxLength=26 size=17 value=f7ed2ba0143e52414e628cc4ba name=NumWEP128_AdvWirelessSetupWepKey4>
                                                  </td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- 802.1xradius -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WL8021xRadius" style="DISPLAY: none" >
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><strong>Security Encryption (WPA)</strong></td>
                                                </tr>
                                                <tr>
                                                  <td width=200>Primary Radius Server IP address </td>
                                                  <td><INPUT maxLength=15 size=15 name=WL8021x_RadiusServer></td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Port </td>
                                                  <td><INPUT maxLength=5 size=5 name=WL8021x_RadiusPort></td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Key </td>
                                                  <td><INPUT maxLength=255 size=15 name=WL8021x_RadiusKey></td>
                                                </tr>                                           
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA-PSK[TKIP] -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WPAPSKTKIP" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><B>WPA-PSK[TKIP]</B></td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11PreSharedKey);</script>
                                                  </td>
                                                  <td>
							  <input type=text maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey1>
							  <input  type=password  style="display:none" maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey1_hide> 
							 (<script type=text/javascript>document.write(Rg802dot11PreSharedKeyLength);</script>)
                                                  </td>                                                   <td>&nbsp;</td>
                                                  <td><input type="radio" name="NumWiFiKeyProtection1" value=0 onclick="ClickWiFiSecPro(0,1);" />
                                                    <script type=text/javascript>document.write(NumShowSecKey);</script>&nbsp;<input type="radio" name="NumWiFiKeyProtection1" value=1 onclick="ClickWiFiSecPro(1,1);" />
                                                    <script type=text/javascript>document.write(NumHideSecKey);</script></td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA2-PSK[AES] -->
											<table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WPA2PSKAES" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><B>WPA2-PSK[AES]</B></td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11PreSharedKey);</script>
                                                  </td>
                                                  <td>
							  <input  type=text maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey2>
							  <input  type=password style="display:none" maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey2_hide> 
							 (<script type=text/javascript>document.write(Rg802dot11PreSharedKeyLength);</script>)
                                                  </td>                                                  <td>&nbsp;</td>
                                                  <td><input type="radio" name="NumWiFiKeyProtection2" value=0 onclick="ClickWiFiSecPro(0,2);" />
                                                    <script type=text/javascript>document.write(NumShowSecKey);</script>&nbsp;<input type="radio" name="NumWiFiKeyProtection2" value=1 onclick="ClickWiFiSecPro(1,2);" />
                                                    <script type=text/javascript>document.write(NumHideSecKey);</script></td>
                                                </tr>
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA-PSK[TKIP] + WPA2-PSK[AES] -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_COMBINE" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><strong>WPA-PSK [TKIP] + WPA2-PSK [AES]</strong></td></tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11PreSharedKey);</script>
                                                  </td>
                                                  <td>
							  <input  type=text maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey3> 
							  <input  type=password style="display:none" maxLength=64 size=15 name=WPAPSK_WpaPreSharedKey3_hide> 
							 (<script type=text/javascript>document.write(Rg802dot11PreSharedKeyLength);</script>)
                                                  </td>                                                 <td>&nbsp;</td>
                                                  <td><input type="radio" name="NumWiFiKeyProtection3" value=0 onclick="ClickWiFiSecPro(0,3);" />
                                                    <script type=text/javascript>document.write(NumShowSecKey);</script>&nbsp;<input type="radio" name="NumWiFiKeyProtection3" value=1 onclick="ClickWiFiSecPro(1,3);" />
                                                    <script type=text/javascript>document.write(NumHideSecKey);</script></td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WPA" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><strong>Security Encryption (WPA)</strong></td></tr>
                                                <tr>
                                                  <td width=200>Encryption </td>
                                                  <td>
                                                    <select name=NetgearEncryptionWpa>
                                                      <option value=0 selected>TKIP</option>
                                                      <option value=1>AES</option>
                                                      <option value=2>TKIP+AES</option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>Primary Radius Server IP address </td>
                                                  <td><input maxLength=15 size=15 name=WPA_RadiusServer></td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Port </td>
                                                  <td><input maxLength=5 size=5 name=WPA_RadiusPort></td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Key </td>
                                                  <td><input maxLength=255 size=15 name=WPA_RadiusKey></td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA2-PSK -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WPA2PSK" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><strong>Security Encryption (WPA2-PSK)</strong></td>
                                                </tr>
                                                <tr>
                                                  <td width=100>Encryption </td>
                                                  <td>
                                                    <select name=NetgearEncryptionWpa2Psk>
                                                      <option value=0 selected>TKIP</option>
                                                      <option value=1>AES</option>
                                                      <option value=2>TKIP+AES</option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>Pre-Shared Key: </td>
                                                  <td>
                                                    <input maxLength=64 size=15 name=WPA2PSK_WpaPreSharedKey> (8-63 characters or 64 byte Hex)
                                                  </td>
                                                </tr>
                                                <!--
                                                <tr><td>Key Lifetime: </td>
                                                <td><input type="hidden" name="WPA2PSK_WpaRekeyInterval" size="5" value="" >(minutes)</td></tr>
                                                -->                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA2 -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_WPA2" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td colSpan=2><strong>WPA/WPA2 Enterprise</strong></td>
                                                </tr>
                                                <tr>
                                                  <td width=200>
                                                    <script type=text/javascript>document.write(Rg802dot11WpaMode);</script>
                                                  </td>
                                                  <td>
                                                    <select name=NetgearEncryptionWpa2 onchange=NetgearEncryptionWpa2SelectorChange();>
                                                      <option value=0 selected>WPA [TKIP]</option>
                                                      <option value=1>WPA2 [AES]</option>
                                                      <option value=2>WPA [TKIP] + WPA2 [AES]</option>
                                                    </select>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <script type=text/javascript>document.write(Rg802dot11RadiusServerIpAddress);</script>
                                                  </td>
                                                  <td><input maxLength=15 size=15 name=WPA2_RadiusServer></td>
                                                </tr>
                                                <tr>
                                                  <td><script type=text/javascript>document.write(Rg802dot11RadiusServerPort);</script></td>
                                                  <td><input maxLength=5 size=5 name=WPA2_RadiusPort></td>
                                                </tr>
                                                <tr>
                                                  <td><script type=text/javascript>document.write(Rg802dot11RadiusServerSharedSecertKey);</script></td>
                                                  <td><input maxLength=255 size=15 name=WPA2_RadiusKey></td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- Encryption (WPA-WPA2) Key  -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="hidden_EncryptionWpa" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td width=100>Encryption:
                                                    <select name=NumNetgearWpaEncryption>
                                                      <option value=0 >TKIP </option><option value=1 >AES </option><option value=2 selected>TKIP+AES </option>
                                                    </select>
                                                  </td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- WPA-PSK/WPA/WPA2-PSK/WPA2 -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="hidden_WPA" style="DISPLAY: none">
                                              <tbody>
                                                <!-- WPA-PSK/WPA2-PSK -->
                                                <tr>
                                                  <td>Pre-Shared Key:
                                                    <input maxLength=64 size=15 value="1BA888B4FF" name=NumWpaPreSharedKey> (8-63 characters or 64 byte Hex)
                                                    <input type="hidden" name="NumWiFiKeyProtection" value=0>
                                                  </td>
                                                </tr>
                                                <!--<tr><td>Key Lifetime: <input type="hidden" name="NumWpaRekeyInterval" size="5" value=0(minutes)</td></tr>-->
                                                <!-- WPA/WPA2 -->
                                                <tr>
                                                  <td>Primary Radius Server IP address
                                                    <input maxLength=15 size=15 value=0.0.0.0 name=NumRadiusServer>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Port <input maxLength=5 size=5 value=1812 name=NumRadiusPort></td>
                                                </tr>
                                                <tr>
                                                  <td>Radius Key <input maxLength=255 size=15 value="" name=NumRadiusKey></td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            
                                            <!-- Encryption (WEP) Key  -->
                                            <table width="100%" border="0" cellpadding="0" cellspacing="10" id="hidden_WEP128" style="DISPLAY: none">
                                              <tbody>
                                                <tr>
                                                  <td><strong>Encryption (WEP) Key:</strong></td>
                                                </tr>
                                                <tr>
                                                  <td>WEP PassPhrase:
                                                    <input maxLength=26 size=13 name=NumWepPassPhrase value="">
                                                    <input type="submit" name="Generate" value="Generate" onclick="generateWepKeys();">
                                                    <input type=hidden name=NumGenerateWepKeys value=>
                                                  </td>
                                                </tr>
                                                <tr>
                                                  <td>
                                                    <input type=radio value="1" checked  name=NumAdvWirelessSetupKey1> 
                                                    <input type=radio value="2"   name=NumAdvWirelessSetupKey2>
                                                    <input type=radio value="3"   name=NumAdvWirelessSetupKey3>
                                                    <input type=radio value="4"   name=NumAdvWirelessSetupKey4>
                                                <!--
                                                <input type="text" name="NumAdvWirelessSetupWepKey1" value=>
                                                <input type="text" name="NumAdvWirelessSetupWepKey2" value=>
                                                <input type="text" name="NumAdvWirelessSetupWepKey3" value=>
                                                <input type="text" name="NumAdvWirelessSetupWepKey4" value=>
                                                -->
                                                  </td>
                                                </tr>                                              
                                              </tbody>
                                            </table>
                                            <input type="hidden" name="NumWiFiDefault" value=0>
                                            <input type="hidden" name="NumWiFiCancel" value=0>
                                            <input type="hidden" name="NumChangeSecOption" value=>
                                            <input type="hidden" name="NumNetgearClosedNetwork" value="">
                                            
                                        <table width="100%" border="0" cellpadding="0" cellspacing="10" id="table_Options">
                                              <tbody>                                                                       <tr>
                                                  <td><hr color= <p class="Hline" /></td>
                                                </tr>
                                                           <tr>
                                                <td><strong><script type=text/javascript>document.write(WirelessCardAccessList);</script></strong></td>
                                              </tr>
                                                <tr>
                                                  <td><p>
                                                    <a href="Numwifi_access_list.htm">
                                                    <input type="button" name="OpenAccessFilter" value="Configuration de la liste  d'accès Wi-Fi" onclick="window.location.href='Numwifi_access_list.htm';" class="num-button2" />
                                                    </a></td>
                                                </tr>
                                                 <tr>
                                                  <td><hr color= <p class="Hline" /></td>
                                                </tr>
                                              </tbody>
                                          </table>
                                          <div align="center">
                                          <input value="Appliquer" type="submit" id="applyBtn" align="middle" onclick="return submit_data()" class="num-button2"/>
                                              
                                              <input onclick="return ClickCancel()" id="cancelBtn" value="Annuler" type="submit" class="num-button2"/>
                                          </div>
                          </div>
                                        <div class="cleared"></div>
                        </div>
                        
                        		<div class="cleared"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="cleared"></div><div class="num-Footer">
                    <div class="num-Footer-inner">
                      <div class="num-Footer-text">
                        <p>&nbsp;</p>
                        <p>&nbsp;
                        </p>
                        </div>
                    </div>
                </div>
        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
    </div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryMenuBarDownHover.gif", imgRight:"SpryMenuBarRightHover.gif"});
//-->
    </script>
    <br/>
    <!-- Nick 20120808, add hidden value for action -->
    <input type=hidden name=WiFiAction value=0>
    <input type=hidden name="LanIp" value="">
    <input type=hidden name="BroadcastIp" value="">
</form>    
</body>
</html>

#2 Re : -1 »  Exécution shell au démarrage » Le 28/03/2014, à 11:48

Sciensous
Réponses : 28
Josepe36 a écrit :

Bonjour

Je ne pense pas que ce soit une bonne chose que de placer ce script dans /etc/init.d, si ça ne fonctionne pas c est probablement parce que le serveur X n'est pas encore lançé
lors de l'execution de votre script.
A mon sens il serait préférable de le placer dans /usr/local/bin, et de l'appeler a l ouverture de votre session  à partir du fichier .profile.

pour la chrono avec le serveur X, je suis d'accord; mais alors il vaut mieux rajouter les instructions dans /etc/rc.local
à confirmer par des spécialistes...

#3 Re : -1 »  Exécution shell au démarrage » Le 28/03/2014, à 12:13

Sciensous
Réponses : 28

spécialistes: toi wink
car à moins de faire des recherches, je ne connais pas la nuance entre rc.local et .profile
merci pour cette précision smile

#4 Re : -1 »  Exécution shell au démarrage » Le 28/03/2014, à 19:47

Sciensous
Réponses : 28

oui, en vérifiant qu'il a bien l'option executable (+x)

#5 Re : -1 »  Ubuntu, le bon choix ? » Le 24/03/2014, à 18:05

Sciensous
Réponses : 10

le mieux est de tester avec un live-cd de Lubuntu
cool

#6 Re : -1 »  Conversion de masse en PDF (RESOLU) » Le 25/03/2014, à 14:01

Sciensous
Réponses : 9

abiword le fait en ligne de commande

edit: libreoffice aussi :

libreoffice -p <fichierdoc>
libreoffice ---convert-to pdf *.doc

#7 Re : -1 »  Conversion de masse en PDF (RESOLU) » Le 25/03/2014, à 22:23

Sciensous
Réponses : 9

libreoffice est un logiciel, par defaut graphique mais avec des possibilités en ligne de commande wink

déjà, as-tu LibreOffice ?

si oui, avec ton navigateur de fichiers, tu vas dans le bon répertoire (celui des doc)

puis Ctl+L, Ctl+C (copie le chemin du répertoire)

tu ouvres un terminal, tu fais le cd +clic droit -> Coller (+enter)
puis tu copies la seconde commande +enter

c'est assez facile en définitive

#8 Re : -1 »  Attendre qu'un processus soit lancé ? » Le 26/03/2014, à 22:25

Sciensous
Réponses : 10

oui j'ai découvert il n'y a pas longtemps wait ; la commande a attendre doit être en arrière-plan (bg) :

command &
EPID=$!
wait $EPID
la suite

#9 Re : -1 »  [RéSOLU] Conversion PDF JPEG » Le 25/03/2014, à 17:56

Sciensous
Réponses : 11

et comment veux-tu vérifier la qualité du résultat ?
pour le travail, tu mets la commande dans un script/boucle et ça roule, non ?

#10 Re : -1 »  [RéSOLU] Conversion PDF JPEG » Le 25/03/2014, à 22:24

Sciensous
Réponses : 11

je pense que ce qui bloque c'est le 'contrôle qualité' smile

#11 Re : -1 »  [RéSOLU] Conversion PDF JPEG » Le 26/03/2014, à 15:34

Sciensous
Réponses : 11
jdacier a écrit :

La commande suivante permet de redimensionner tous les fichiers d'un dossier

mogrify -resize 1280x1024 *.jpg

Je cherche une commande équivalente pour convertir des fichiers PDF en JPEG, c'est tout


Par "contrôle de la qualité" je veux dire quel est le paramètre qui permet de définir la qualité du résultat. Par essais successifs je déterminerais la meilleure valeur pour mon goût

????????
Tu es le premier à mettre cette commande sur ce fil il me semble lol

Par contre une commande qui fasse le travail voulu a été répétée +sieurs fois, je ne vais pas le faire +1 fois hmm

#12 Re : -1 »  Renommer des fichiers en conservant le premier nombre et l'extension. » Le 19/03/2014, à 21:16

Sciensous
Réponses : 32

si l'extension est toujours la même:

ext=".txt"; for i in *torrent$ext; do mv -i "$i" `basename "$i" $ext`; done

attention, faire un copier coller car:
les '`' sont dpéciaux et s'obtiennent par alt F7 (c'est pour récupérer un retour de commandes)
il y a un espace entre "$i" et $ext (basename retourne le nom de fichier+ext, mais suivi d'un motif , supprime ce dernier )
cool

#13 Re : -1 »  Renommer des fichiers en conservant le premier nombre et l'extension. » Le 19/03/2014, à 21:41

Sciensous
Réponses : 32

@tiramiseb: ok pour les guillemets manquants wink

#14 Re : -1 »  Renommer des fichiers en conservant le premier nombre et l'extension. » Le 21/03/2014, à 11:40

Sciensous
Réponses : 32

peu peu peu !
Ne confondez pas plus simple avec plus compact smile

l'utilisation de rename de manière intuitive nécessite de maitriser les regex (ok pour s=substitute mais les code d'échappement, faut les connaite)
la sanction peut être lourde en cas confusion des instructions!

dans mon, c'est du shell de base, classiquement, donc mv + basename + boucle et c'est ok
c'est mon avis de néophyte big_smile

Autre point, pour Spike00, il me semble que cette rubrique concerne surtout les astuces, scripts utiles à proposer : réf
De plus, si tu as trouvé ton bonheur --> résolu dans le titre

Maintenant, nous sommes tous sympas, donc nous répondons quand même et proposons dans la discussion les différentes manières de résoudre un point.

Bonne journée wink

#15 Re : -1 »  personnalisation de LXDE » Le 24/03/2014, à 17:40

Sciensous
Réponses : 113

déjà essayez en ligne de commande: ouverture d'un terminal et

pcmanfm

#16 Re : -1 »  Transformer pdf en jpg » Le 22/03/2014, à 20:55

Sciensous
Réponses : 6

essayez:

convert -density 300 -trim test.pdf -quality 100 test.jpg

#17 Re : -1 »  Relier 2 Pc sous ubuntu » Le 20/03/2014, à 21:57

Sciensous
Réponses : 2

comuniquer peut prendre des sens très différents, surtout en terme de serveur/client smile

est-ce pour dialoguer, genre chat ou échanger des fichiers, ou partager des ressources ?
cool

#18 Re : -1 »  GpicView » Le 10/03/2014, à 16:14

Sciensous
Réponses : 2

Un soft  fait pour (et +), mais léger et dans les dépots: photoprint
cool

#19 Re : -1 »  Se passer de flash dans Youtube sous Firefox (et Chromium) » Le 14/01/2014, à 14:28

Sciensous
Réponses : 8

reste le problème avec les jeux en ligne wink

#20 Re : -1 »  Navigateur Internet et Pc éssouflé » Le 12/01/2014, à 20:14

Sciensous
Réponses : 5

+1 pour Lubuntu (mêmes conséquences sur un dell 600 smile )

pour le navigateur léger: qupzilla a l'air très sobre
par contre par sur de pouvoir tout faire (lecteur video+audio) avec un vieux pc

Edit: sinon; j'oubliais aussi le navigateur léger: epiphany

#21 Re : -1 »  Navigateur Internet et Pc éssouflé » Le 14/01/2014, à 14:31

Sciensous
Réponses : 5

tant qu'à faire, installe Lubuntu 12.04

ISO

#22 -1 »  Grub v2 [Resolu] » Le 06/01/2014, à 23:28

Sciensous
Réponses : 3

Hello tout lemonde !

Nouvelle annee, nouvelle question:

Concernant du milti-boot, avec l'ancien grub, j'arivais facilement `a forcer le demarrage sur un systeme (disons ligne 0) par savedefault 0 `a chaque ligne de boot (menu.lst `a l'epoque).
L'interet est : de demarrer tout le temps sur 0, sauf si `a un moment je disais grub-reboot 1 : le pc redemarre cette fois sur 1 mais au prochain demarrage, il boot sur 0.

Maintenant, avec le nouveau grub, je n'arrive plus `a booter  sur 1 occasionnellement par cette methode: soit il redemarre toujours sur 0 (default=0) malgre un grub-reboot 1; soit il redemarre sur l'ancien systeme utilise (par ex 1), donc encore 1 au lieu de 0 apres le reboot suivant.


Quelqu'un peut m'aider ?

PS: je cherche `a avoir ce comportement pour ne pas avoir le menu grub qui s'affiche (timeout `a 0, donc pas la possibilite de  faire apparaitre le menu au boot)
(bien sur, j'ai chercher en vain avant)
(et j'espere etre au bon endroit)


Merci d'avance pour vos aides wink

EDIT: j'ai du faire une mauvaise manoeuvre car aprs 2 tests tout fonctionne normalement avec les savedefault 0 comme avec grub v1 smile
fausse alerte donc o)

#23 Re : -1 »  Grub v2 [Resolu] » Le 07/01/2014, à 22:04

Sciensous
Réponses : 3
malbo a écrit :

Mais c'est quoi ta machine ? Elle est équipée d'un système UEFI au lieu du Bios ou quoi ?

Je ne suis pas sûr de la pertinence de ces infos: il s'agit de plusieurs "vieux" pentium, sans UEFI

malbo a écrit :

Et ton besoin, c'est de pouvoir sélectionner entre deux Linux ou bien c'est pour sélectionner entre Ubuntu et Windows ?

là, par contre bingo: le but est de permettre à une personne mineure de lancer win, mais en étant sur que le cable réseau est physiquement déconnecté (win sans mise à jour depuis 1 an)  ! Donc boot sans menu de choix possible et JE lance win via sudo grub-reboot <no de win>

#24 Re : -1 »  [RÉSOLU] qupzilla » Le 20/12/2013, à 16:08

Sciensous
Réponses : 4

merci mam1962, je suis déjà tombé sur ton tuto post install et justement c'est ce ppa en question qui faisait l'erreur !
ou plutôt, comme l'expliqua nels69, il s'agissait d'un bug de version de python-software !!

en HS, ton tuto est une bonne initiative et clair et concis; évidemment j'ai quelques reproches:
l'antivirus ? Non nécessaire quand on est sous linux (sauf serveur dont win et encore)
abiword et gnumeric ? je les utilise couremment car suffisant dans mon cas et bien plus rapide à lancer avec mes vieux pc
(le plus jeune est de 98)

bonnes fêtes smile