9f57b23984ba9fdbc871c84a38462dfb34d948c8
[bcm963xx.git] / userapps / broadcom / cfm / html_500V / hcti_telefon_sgeh.htm
1 <HTML>
2
3 <HEAD>
4
5 <TITLE>TelefonSperrlistegehend</TITLE>
6
7 <SCRIPT language="JavaScript" src="js_menu.txt" type="text/JavaScript"></SCRIPT>
8 <SCRIPT language="JavaScript" src="js_fade.txt" type="text/JavaScript"></SCRIPT>
9
10 <SCRIPT language="JavaScript">
11 <!--
12 function chk(){
13         document.F1.T1[0].value = '<%ejGetvoipOut(OCAL_0)%>';
14         document.F1.T1[1].value = '<%ejGetvoipOut(OCAL_1)%>';
15         document.F1.T1[2].value = '<%ejGetvoipOut(OCAL_2)%>';
16         document.F1.T1[3].value = '<%ejGetvoipOut(OCAL_3)%>';
17         document.F1.T1[4].value = '<%ejGetvoipOut(OCAL_4)%>';
18         document.F1.T1[5].value = '<%ejGetvoipOut(OCAL_5)%>';
19         document.F1.T1[6].value = '<%ejGetvoipOut(OCAL_6)%>';
20         document.F1.T1[7].value = '<%ejGetvoipOut(OCAL_7)%>';
21         document.F1.T1[8].value = '<%ejGetvoipOut(OCAL_8)%>';
22         document.F1.T1[9].value = '<%ejGetvoipOut(OCAL_9)%>';
23         document.F1.T1[10].value = '<%ejGetvoipOut(OCAL_10)%>';
24         document.F1.T1[11].value = '<%ejGetvoipOut(OCAL_11)%>';
25         document.F1.T1[12].value = '<%ejGetvoipOut(OCAL_12)%>';
26         document.F1.T1[13].value = '<%ejGetvoipOut(OCAL_13)%>';
27         document.F1.T1[14].value = '<%ejGetvoipOut(OCAL_14)%>';
28         document.F1.T1[15].value = '<%ejGetvoipOut(OCAL_15)%>';
29         document.F1.T1[16].value = '<%ejGetvoipOut(OCAL_16)%>';
30         document.F1.T1[17].value = '<%ejGetvoipOut(OCAL_17)%>';
31         document.F1.T1[18].value = '<%ejGetvoipOut(OCAL_18)%>';
32         document.F1.T1[19].value = '<%ejGetvoipOut(OCAL_19)%>';
33 }
34
35 function txtHinw(feldname){
36   return "Im Feld '" + feldname + "' wurde eine falsche Eingabe bzw. keine Eingabe vorgenommen." + 
37          "\nDie korrekte Eingabe ist notwendig, um die Telefonie über das Internet verwenden zu können.";
38 }
39
40 // note: return true means input includes illegal char.
41 function chkNumber(input)
42
43         var ret = false;
44         var i = 0;
45         for (i=0;i<input.length;i++)
46         {
47                 if (input.charAt(i) < '0' || input.charAt(i) > '9')
48                 {       
49                         ret = true;
50                         break;
51                 }
52         }
53         return ret;
54 }
55
56 function stOk ()
57
58   var prf = true;
59   var idxErr = 0;
60   for(i=0;i<20;i++) {
61     if(document.F1.T1[i].value != "") {
62                 if (chkNumber (document.F1.T1[i].value) == true) {
63         prf = false;
64                         idxErr = i;
65         break;
66                 }
67    }
68   }
69   if (prf == false){
70     alert(txtHinw("Zu sperrende Rufnummer"));
71     document.F1.T1[idxErr].focus();
72          return;
73   }
74   stSave();
75 }
76   
77 function stDel(){
78   if (confirm("Wenn Sie alle Einträge in der Liste löschen möchten, dann klicken Sie auf 'OK'." +
79               "\nKlicken Sie auf 'Abbrechen', um das Löschen zu verhindern.")==true){
80                 document.forms[0].reset();
81                 stSave();
82    }
83
84 }
85
86
87 function stSave(){
88    document.getElementById('t_but1').style.visibility='hidden';
89         document.getElementById('t_but2').style.visibility='hidden';
90    document.getElementById('t_but3').style.visibility='hidden';
91    document.getElementById('t_but4').style.visibility='hidden';
92   
93   document.getElementById("c_verzoeg1").style.visibility='visible';
94   document.getElementById("c_verzoeg2").style.visibility='visible';
95   
96   var loc = 'voipcfg.cmd?action=outset&s';
97   
98   for (i=0;i<19;i++){
99     loc = loc + 'OCAL_' + i + '=' + encodeUrl(document.F1.elements[i].value) + '&';
100   }
101   loc = loc + 'OCAL_19=' +  encodeUrl(document.F1.elements[19].value);
102   //alert(loc);
103   var code = 'this.location.assign("' + loc + '")';
104   eval(code);  
105
106   //setTimeout("stZrk()",top.frames[0].verzoeg);
107 }
108
109 function stZrk(){
110   top.frames[2].location.href = "hcti_telefon.htm";
111 }
112
113 //-->
114 </SCRIPT>
115
116 <LINK rel="stylesheet" href="style.css" type="text/css">
117
118 <STYLE type="text/css">
119 <!--
120
121 #scroll{WIDTH: 400px; HEIGHT: 341px; OVERFLOW: scroll;}
122
123 //-->
124 </STYLE>
125
126 </HEAD>
127
128 <BODY onload=chk()>
129
130 <DIV id=c_Frame>
131
132 <DIV id=c_border>
133 <DIV id=c_pfad>Telefonie / Sperrliste gehend</DIV>
134 <DIV id=c_titel>Sperrliste gehend</DIV>
135 <DIV id=c_std>
136       <table border="0" cellpadding="0" cellspacing="2">
137         <tr>
138           <form name="F1">
139             <td width="45">Eintrag</td>
140             <td width="15"></td>
141             <td width="220">Zu sperrende Rufnummer</td>
142             <td></td>
143         </tr>
144       </table>
145 </DIV>
146
147 <DIV id=scroll>
148 <SCRIPT language="JavaScript">
149 <!--                    
150 for (i=0;i<20;i++){
151   var divart = "c_std";
152   var endf = "";
153   if (i==19){
154     divart = "c_last";
155     endf = "</form>";
156   }
157   document.write(
158     '<DIV id=' + divart + '>' +
159       '<table border="0" cellpadding="0" cellspacing="2">' +
160         '<tr onmouseover=i_showElem(1) onmouseout=i_showElem(0)>' +
161             '<td width="45" align="center">' + (i+1) + '</td>' +
162             '<td width="15"></td>' +
163             '<td width="220"><input type="text" name="T1" size="25" maxlength="27"></td>' +
164             '<td> </td>' +
165           endf +
166         '</tr>' +
167       '</table>' +
168     '</DIV>');
169 }
170
171 //-->
172 </SCRIPT> 
173 </DIV>
174
175 <DIV id=c_foot></DIV>
176 </DIV>
177
178 <DIV id=c_verzoeg1></DIV>
179 <DIV id=c_verzoeg2></DIV>
180
181 </DIV>
182
183 <DIV id=t_Frame>
184
185 <DIV id=t_but1 onclick=startseite() onmouseover=rahmen(1,1) onmouseout=rahmen(0,1)>&lt;&lt;&nbsp;&nbsp;&lt;&lt;</DIV>
186 <DIV id=t_but2 onclick=stDel() onmouseover=rahmen(1,2) onmouseout=rahmen(0,2)>L&ouml;schen &lt;&lt;</DIV>
187 <DIV id=t_but3 onclick=stZrk() onmouseover=rahmen(1,3) onmouseout=rahmen(0,3)>Zur&uuml;ck &lt;&lt;</DIV>
188 <DIV id=t_but4 onclick=stOk() onmouseover=rahmen(1,4) onmouseout=rahmen(0,4)>Speichern &lt;&lt;</DIV>
189
190 </DIV>
191
192 <DIV id=i_Frame>
193
194   <DIV id=i_content>
195     <h2>Sperrliste gehend</h2>
196     <p>Sie können Rufnummern eintragen, die nicht angerufen werden dürfen. </p>
197     
198   </DIV>
199   
200   <DIV id=i_content1>
201     <h2>Sperrliste gehend</h2>
202     <p><b>Zu sperrende Rufnummer</b><br>
203     Geben Sie die Rufnummer ein, die Sie sperren möchten. Die Sperre gilt für alle angeschalteten Anschlüsse (Festanschluss und Internet).</p>
204     
205   </DIV>
206   
207 </DIV>
208
209 </BODY>
210
211 </HTML>