
//
// --------------------------------------------------------------------
// - Scripts for the "Arpa del Diavolo" site                          -
// --------------------------------------------------------------------
//


//
// - Open a new page with the image in 'img' --------------------------
//
    function OpenImg(img,num){
        document.data.img.value = img;
        document.data.imm.value = num;
        
        document.data.action = "popImg.php";
        document.data.target = "blank";
        
        document.data.submit();
        
        
        document.data.action = "gallery.php";
        document.data.target = window.name;

    }

//
// - Open a new page with the image in 'img' and the next-previous 
// - variator 
//
    function OpenImgPN(img,incr){
    
        document.data.img.value = img;
        
        document.data.imm.value = (document.data.imm.value*1)+(incr*1);
        
        document.data.action = "popImg.php";
        
        document.data.submit();
        
        
        document.data.action = "gallery.php";
        document.data.target = window.name;

    }


//
// - Opens a gallery --------------------------------------------------
//
    function OpenGall(anno,luogo){
    
        document.data.year.value = anno;
        document.data.place.value = luogo;
        
        document.data.action = "gallery.php";
        
        document.data.submit();
        
    }
    
//
// - Open next page of gallery ----------------------------------------
//

    function NextPage(inc){
    
        document.data.start.value = inc;
        
        document.data.action = "gallery.php";
        
        document.data.submit();
    
    }

//
// - Open next page of newspage ---------------------------------------
//

    function NextPageN(inc){
    
        document.data.start.value = inc;
        
        document.data.submit();
    
    }


//
// - Open next page of video's page -----------------------------------
//

    function NextPageV(inc){
    
        document.data.start.value = inc;
        
        document.data.submit();
    
    }

//
// - Changes the language ---------------------------------------------
//

    function SelLang(ln){
    
        document.data.ln.value = ln;
        document.data.submit();
    
    }


//
// - Changes the page -------------------------------------------------
//

    function OpenPage(pag){
    
        document.data.action = pag+".php";
        document.data.submit();
    
    }


//
// - Opens a member page ----------------------------------------------
//
    function OpenMemb(id){
    
        document.data.id.value = id;
        
        document.data.action = "membro.php";
        
        document.data.submit();
        
    }