var props = "width=695,height=400,scrollbars=no,resizable=1,top=50,left=50";



function popupSoluzioni(spot) {

  var popupURL="./soluzioni/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupSicurezza(spot) {

  var popupURL="./soluzioni/sicurezza/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupInternet(spot) {

  var popupURL="./soluzioni/internet/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupConnettivita(spot) {

  var popupURL="./soluzioni/internet/connettivita/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupDominiWEB(spot) {

  var popupURL="./soluzioni/internet/domini_web/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupAntispam() {

  var popupURL="./soluzioni/internet/antispam.html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupNetworking(spot) {

  var popupURL="./soluzioni/networking/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupWireless(spot) {

  var popupURL="./soluzioni/wireless/"+spot+".html";

  soluzioni=window.open(popupURL,"soluzioni",props)

}



function popupPartner(spot) {

  var popupURL="./partner/"+spot+".html";

  partner=window.open(popupURL,"partner",props)

}



function popupAssistenza(spot) {

  var popupURL="./assistenza/"+spot+".html";

  assistenza=window.open(popupURL,"assistenza","width=695,height=400,scrollbars=no,resizable=1,top=50,left=50")

}



function popupContatti(spot) {

  var popupURL=spot;



contatti=window.open(popupURL,"contatti","width=455,height=525,scrollbars=no,resizable=1,top=100,left=100")

}



function popupUtenti(spot) {

  var popupURL="./utenti/"+spot+".html";

  utenti=window.open(popupURL,"utenti","width=800,height=555,scrollbars=1,resizable=1,top=50,left=50")

}

function popupClienti(spot) {

  var popupURL="http://mail03.antivirus.tc:4443";



clienti=window.open(popupURL,"clienti","width=850,height=550,location=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes,top=10,left=10")

}



function Help1() {

  var popupURL="./assistenza/richiesta_assistenza.html";

  help=window.open(popupURL,"help","scrollbars=yes,resizable=1")

}

function Help() {

  var popupURL="./richiesta_assistenza.html";

  help=window.open(popupURL,"help","scrollbars=yes,resizable=1")

}



function popupLegali(spot) {

  var popupURL="./legali/"+spot+".html";

  legali=window.open(popupURL,"legali","width=695,height=450,scrollbars=1,resizable=1,top=20,left=20")

}



function popupMappa() {

  var popupURL="./mappa.html";

  mappa=window.open(popupURL,"mappa","width=800,height=625,scrollbars=1,resizable=1,top=0,left=0")

}

function popupAntivirus() {

  var popupURL="./antivirus1.html";

  antivirus=window.open(popupURL,"antivirus","width=784,height=500,scrollbars=0,resizable=1,top=0,left=0")

}

function popupAntivirus_1() {

  var popupURL="./utenti/richiesta_antivirus.html";

  antivirus1=window.open(popupURL,"antivirus1","width=595,height=380,scrollbars=0,resizable=1,top=5,left=10")

}



// ******************************



function popupWebmail() {

  var popupURL="https://mail.antivirus.tc:4443/mail03/index.php";

  utenti=window.open(popupURL,"utenti","width=800,height=555,scrollbars=1,resizable=1,top=50,left=50")

}



// *********** isokinetic *******************





function popupWebmailisokgen() {

  var popupURL="http://www.isokinetic.com/_webmail/";

  utenti=window.open(popupURL,"utenti","width=800,height=555,scrollbars=1,resizable=1,top=50,left=50")

}





function popupWebmailisokext() {

  var popupURL="https://mail01.isokinetic.com:4443/mail03/";

  utenti=window.open(popupURL,"utenti","width=800,height=555,scrollbars=1,resizable=1,top=50,left=50")

}



function popupWebmailisokint() {

  var popupURL="https://192.168.100.103/mail03/";

  utenti=window.open(popupURL,"utenti","width=800,height=555,scrollbars=1,resizable=1,top=50,left=50")

}













//****************************************

//*  Disable "Enter" key in Form script  *

//****************************************

                

function handleEnter (field, event) {

 var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;

 if (keyCode == 13) {

  var i;

  for (i = 0; i < field.form.elements.length; i++)

   if (field == field.form.elements[i]) break;

  i = (i + 1) % field.form.elements.length;

  field.form.elements[i].focus();

  return false;

 } 

 else

  return true;

}



//****************************************

//*    Validate FORM_CONVEGNO script     *

//****************************************



re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/



function CheckForm() {



if(document.form_convegno[4].value.length < 1) {

  alert("Attenzione:\nManca la Ragione Sociale!");

  document.form_convegno[4].focus();

  return false;

}

if(document.form_convegno[5].value.length < 1) {

  alert("Attenzione:\nManca il Nominativo");

  document.form_convegno[5].focus();

  return false;

}

if (!re.test(document.form_convegno[6].value)) {

  alert("Attenzione:\nIndirizzo e-mail non valido!");

  document.form_convegno[6].focus();

  document.form_convegno[6].select();

  return false;

}

if (document.form_convegno[12].value.length < 1) {

  alert("Attenzione:\nManca il Telefono!");

  document.form_convegno[12].focus();

  return false;

}

//document.form_convegno.submit();



}







//******************************************************

//*  script rotazione immagine centrale in index.html  *

//******************************************************



var b0_numbann=22;



var b0_bann1="spiaggia.jpg"

var b0_bann2="scudo.jpg"

var b0_bann3="telefono.jpg"

var b0_bann4="scudo.jpg"

var b0_bann5="fibra.jpg"

var b0_bann6="pretino.jpg"

var b0_bann7="notebook.jpg"

var b0_bann8="cdrom.jpg"

var b0_bann9="spiaggia.jpg"

var b0_bann10="fibra2.jpg"

var b0_bann11="fiore2.jpg"

var b0_bann12="fiore.jpg"

var b0_bann13="spiaggia.jpg"

var b0_bann14="fuochi2.jpg"

var b0_bann15="fuochi.jpg"

var b0_bann16="lamp.jpg"

var b0_bann17="lucertola.jpg"

var b0_bann18="spiaggia.jpg"

var b0_bann19="router.jpg"

var b0_bann20="scudo2.jpg"

var b0_bann21="taras.jpg"

var b0_bann22="lucertola.jpg"



b0_cur=Math.round(Math.sin(Math.random()*Math.PI)*(b0_numbann-1))+1



if (b0_cur==1)  b0_img=b0_bann1

if (b0_cur==2)  b0_img=b0_bann2

if (b0_cur==3)  b0_img=b0_bann3

if (b0_cur==4)  b0_img=b0_bann4

if (b0_cur==5)  b0_img=b0_bann5

if (b0_cur==6)  b0_img=b0_bann6

if (b0_cur==7)  b0_img=b0_bann7

if (b0_cur==8)  b0_img=b0_bann8

if (b0_cur==9)  b0_img=b0_bann9

if (b0_cur==10)  b0_img=b0_bann10

if (b0_cur==11)  b0_img=b0_bann11

if (b0_cur==12)  b0_img=b0_bann12

if (b0_cur==13)  b0_img=b0_bann13

if (b0_cur==14)  b0_img=b0_bann14

if (b0_cur==15)  b0_img=b0_bann15

if (b0_cur==16)  b0_img=b0_bann16

if (b0_cur==17)  b0_img=b0_bann17

if (b0_cur==18)  b0_img=b0_bann18

if (b0_cur==19)  b0_img=b0_bann19

if (b0_cur==20)  b0_img=b0_bann10

if (b0_cur==21)  b0_img=b0_bann21

if (b0_cur==22)  b0_img=b0_bann22







//******************************************************

//* script che rende visibili o non i layer (avg.html) *

//******************************************************



function contractall(){

 if (document.getElementById){

  var inc=0

  while (document.getElementById("dropmsg"+inc)){

   document.getElementById("dropmsg"+inc).style.display="none"

   inc++

  }

 }

}



function expandone(d){

 if (document.getElementById){

  var which=d

  contractall()

  document.getElementById("dropmsg"+which).style.display="block"

 }

}




