function video() {
   var w = 800;
   var h = 750;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("video.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
function spedizione() {
   var w = 420;
   var h = 580;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("spedizione.htm","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
function M_pagamento() {
   var w = 420;
   var h = 550;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("metodi_pagamento.htm","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
function recesso() {
   var w = 500;
   var h = 630;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("diritto_recesso.htm","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
function recuperoPassword() {
   var w = 300;
   var h = 170;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("form_recuperoPassword.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
function iscrizione() {
   var w = 580;
   var h = 600;
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
      window.open("iscrizione_clienti.php","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
 }
var NumberOfImages = 4

var img = new Array(NumberOfImages)

img[0] = "img/neg2.jpg"
img[1] = "img/neg3.jpg"
img[2] = "img/neg1.jpg"
img[3] = "img/neg5.jpg"

var imgNumber = 0

function NextImage()
{
    imgNumber++
    if (imgNumber == NumberOfImages)
        imgNumber = 0
    document.images["VCRImage"].src = img[imgNumber]
}

function PreviousImage()
{
    imgNumber--
    if (imgNumber < 0)
        imgNumber = NumberOfImages - 1
    document.images["VCRImage"].src = img[imgNumber]
}
function menu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}