Prof. Guido Russo - Scope - Università degli Studi di Napoli Federico II
Prof. Guido Russo - Scope - Università degli Studi di Napoli Federico II
Prof. Guido Russo - Scope - Università degli Studi di Napoli Federico II
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<br />
<br />
<br />
<br />
<br />
<br />
<br />
/*<br />
Controlla se i campi obbligatori sono stati inseriti<br />
*/<br />
function check_obbligatori(){<br />
if(document.form1.attr_address.value=="" || document.form1.attr_name.value=="") {<br />
var msg="I seguenti campi obbligatori non sono stati inseriti:\n";<br />
if(document.form1.attr_address.value=="" ) msg+="In<strong>di</strong>rizzo IP\n";<br />
if( document.form1.attr_name.value=="") msg+="Nome <strong>di</strong>spositivo";<br />
alert(msg);<br />
return false;<br />
}<br />
var ip=document.form1.attr_address.value.split(".");<br />
if(ip.length!=4){<br />
alert('In<strong>di</strong>rizzo IP non valido');<br />
return false;<br />
}<br />
for(i=0;i3){<br />
alert('IP errato');<br />
return false;<br />
}<br />
}<br />
return true;<br />
}<br />
/*<br />
Crea una lista <strong>di</strong> <strong>di</strong>spositivi che verra utilizzata per rappresentare le <strong>di</strong>pendenze<br />
*/<br />
arrDevice = new Array();<br />
arrSelected = new Array();<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
/*arrDevice[0] = ['altlaswn01.na.infn.it','wn','atlas'];<br />
...<br />
arrDevice[14] = ['pamelace01.na.infn.it','ce','pamela'];*/<br />
<br />
<br />
<br />
<br />
<br />
<br />
/*arrSelected[0] = 'altlaswn01.na.infn.it';<br />
...<br />
arrSelected[2] = 'altlaswn03.na.infn.it';*/<br />
Pietro Neroni 566/2833 Pagina 105 <strong>di</strong> 117