/* Local Certificate List start */
var fid0_record_next_index = 0;
var fid0_max_number = 32;
var fid0_count =0;
var fid0_record_csid = new Array(
"N00201171",
"N00201172",
"N00201173",
"N00201174",
"N00201175",
"N00201176",
"N00201177",
"N00201178",
"N00201179",
"N0020117A",
"N0020117B",
"N0020117C",
"N0020117D",
"N0020117E",
"N0020117F",
"N00201180",
"N00201181",
"N00201182",
"N00201183",
"N00201184",
"N00201185",
"N00201186",
"N00201187",
"N00201188",
"N00201189",
"N0020118A",
"N0020118B",
"N0020118C",
"N0020118D",
"N0020118E",
"N0020118F",
""
)
var fid0_record_index = new Array(
"2",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
)
var fid0_caname_csid = new Array(
"S00750201=",
"S00750202=",
"S00750203=",
"S00750204=",
"S00750205=",
"S00750206=",
"S00750207=",
"S00750208=",
"S00750209=",
"S0075020A=",
"S0075020B=",
"S0075020C=",
"S0075020D=",
"S0075020E=",
"S0075020F=",
"S00750210=",
"S00750211=",
"S00750212=",
"S00750213=",
"S00750214=",
"S00750215=",
"S00750216=",
"S00750217=",
"S00750218=",
"S00750219=",
"S0075021A=",
"S0075021B=",
"S0075021C=",
"S0075021D=",
"S0075021E=",
"S0075021F=",
"S00750220=",
""
)
var fid0_CA_xx = new Array(
"-----BEGIN CERTIFICATE-----\012MIICJTCCAc+gAwIBAgIJAOXCJ4GP5/gOMA0GCSqGSIb3DQEBBAUAMG4xCzAJBgNV\012BAYTAkNPMQswCQYDVQQIDAJTVDELMAkGA1UEBwwCTE8xCzAJBgNVBAoMAk9SMQsw\012CQYDVQQLDAJPVTELMAkGA1UEAwwCQ04xHjAcBgkqhkiG9w0BCQEWD2FhYUBhbWl0\012LmNvbS50dzAeFw0xODA2MTkwMTA1MTNaFw0zODA2MTQwMTA1MTNaMG4xCzAJBgNV\012BAYTAkNPMQswCQYDVQQIDAJTVDELMAkGA1UEBwwCTE8xCzAJBgNVBAoMAk9SMQsw\012CQYDVQQLDAJPVTELMAkGA1UEAwwCQ04xHjAcBgkqhkiG9w0BCQEWD2FhYUBhbWl0\012LmNvbS50dzBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDMv50x9QJGjNXNqoovFvO5\012EuPQpg3W57+DJJIISnbq/dfwahCn77mfQ2zg16b2ZrkorHSwxzJiGZ5AJ9rM/33d\012AgMBAAGjUDBOMB0GA1UdDgQWBBSqGWOzsMtMtb1YY7zZCMAKOL38HDAfBgNVHSME\012GDAWgBSqGWOzsMtMtb1YY7zZCMAKOL38HDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3\012DQEBBAUAA0EAFOQ3+nYWeDWMAyabY1NunXXLJdP0daERFfYiUMC3/f6pFU4aEmA9\012UnSAlHrRlxngKGpwAjvan33G2kTIS6uLQA==\012-----END CERTIFICATE-----",
"N00201170=0",
""
)
var fid0_impcert_xx = new Array(
"",
"-----BEGIN CERTIFICATE REQUEST-----\012MIIBrjCCARcCAQAwbjELMAkGA1UEBhMCQ08xCzAJBgNVBAMMAkNOMQswCQYDVQQI\012DAJTVDELMAkGA1UEBwwCTE8xCzAJBgNVBAoMAk9SMQswCQYDVQQLDAJPVTEeMBwG\012CSqGSIb3DQEJARYPYWFhQGFtaXQuY29tLnR3MIGfMA0GCSqGSIb3DQEBAQUAA4GN\012ADCBiQKBgQDZYNX/ugmTLdh39KDqcz9O13APhcUjxGkY1K3FM7II8XHWQ18BKo1Y\012oSl/JWntP3UF/K0uzeQdR08adbZ1OZTVl4bLkptXYAikPWdlgJyeLx1VptyU8iTc\012tWIPu6aQ4Bp7zJm+OzMAgL1CfGx48XNFkEx+8q5ipkymU4oOfRLwFQIDAQABoAAw\012DQYJKoZIhvcNAQEFBQADgYEAKlbgtkQxJLN/iKgfjG/gkQ+LyT1p+tkzWysDUohb\0122+1dviZ4klHwFqnzg7ZPsWg+oRQFMp0pVHJci5ulk4Yak4Gqf6KG4qWpc5Ja+/9j\0120VZJ05XzTAOPos+7RnJAOdjyFzpAlYLStJmicg5w+n4Fd66Z3an+dAKm6yLT3snC\012dMM=\012-----END CERTIFICATE REQUEST-----",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
)
var fid0_record_length = 0;
for(var g=0;g<fid0_record_index.length;g++)
{
if(fid0_record_index[g] == "")
{
fid0_record_length = g;
break;
}
}
function imp_g_local_cert(obj,num_del,trux)
{
var Rlength = fid0_record_length;   // arry �n�s�����m
var Mnumber = fid0_max_number;      // �`����
var Rnextinx = fid0_record_next_index;  //�n�s��csid �� %x
if(Rlength != Mnumber)
{
obj.form.action = (trux == "imp")?"certificate_loc_imp.htm":"certificate_req.htm";
obj.form.Ntid.value = Rnextinx;
obj.form.Ntcalen.value = parseInt(Rlength)+1;
obj.form.Nrule.value = Rnextinx;
document.getElementById("x509act").value = Rnextinx;
obj.form.submit();
}
else { alert(GetElmCont("pptps_0","Rule could not be added anymore.")); }
}
function clkView(act,id)// for button :View
{
GURL("certificate_view.htm?rc=&Nrule="+id+"&N80750001="+id+"&N80750002="+((id == 0)?14:act))
}
function del_tunnel()
{
var tmp_del = document.getElementsByName('loc_cert_del');
var ary_recoinx = fid0_record_index;
var ary_recoinx_csid = fid0_record_csid;
var ary_imp = fid0_caname_csid;
var delgloup = "";
var del_arr = new Array();
var index = 0;
var new_index = 0;
var actty = 10;
var sent_str ="certificate.htm?";
for(var t=0;t<tmp_del.length;t++)
{
if(tmp_del[t].checked)
{
del_arr[index] = tmp_del[t].value;
index++;
}
}
if(del_arr.length == 0)
{
alert(GetElmCont("lb_0","Please choose one or more rule."));
return false;
}
for(var r=0;r<ary_recoinx.length;r++)
{
for(var n=0;n<del_arr.length;n++)
{
if(ary_recoinx[r] == del_arr[n])
{
delgloup += (delgloup == "")?ary_recoinx[r]:","+ary_recoinx[r]
ary_recoinx[r] = "";
}
}
}
for(var a=0;a<ary_recoinx.length;a++)
{
if(ary_recoinx[a] != "")
{
sent_str += (sent_str == "certificate.htm?")?ary_recoinx_csid[new_index]+"="+ary_recoinx[a]:"&"+ary_recoinx_csid[new_index]+"="+ary_recoinx[a];
new_index++;
}
}
for(var c=new_index;c<ary_recoinx_csid.length;c++)
{
sent_str += (sent_str == "certificate.htm?")?ary_recoinx_csid[c]+"=":"&"+ary_recoinx_csid[c]+"=";
}
for(var r=0;r<del_arr.length;r++)
{
var tunlname_index = del_arr[r]-1;
sent_str += "&"+ary_imp[tunlname_index];
}
sent_str += "&S80750004="+delgloup+"&N80750002="+actty;
sent_str += "&N80750000=1";
GURL(sent_str);
}
/* Local Certificate List end*/