﻿var prima;


function carica(nome_)
    {
    if (fRunning == 0)
        fRunning = 1;
        if (document.all)
        {
        document.images("quadro").filters.item(0).Apply();
        document.getElementById("quadro").setAttribute("src",nome_);
        document.getElementById("quadro").style.filters="filter:progid:DXImageTransform.Microsoft.Fade(duration=1);";
        document.images("quadro").filters.item(0).Play();
        }
        else
        {
        var object = document.getElementById("quadro").style;
        document.getElementById("quadro").setAttribute("src",nome_);
        }
    }
    
var fRunning = 0;

function primaimm(nome_)
    {
        document.getElementById("quadro").setAttribute("src",nome_);
    }
    
function rimuovi(divNum) {
  var d = document.getElementById('contimg');
  var olddiv = document.getElementById(divNum);
  d.removeChild(olddiv);
}

function sifreccie(nome_)
    {
        var ora =document.getElementById(nome_);
            ora.setAttribute("src",nome_+"&f=1");
    }


function nofreccie(nome_)
    {
        var ora =document.getElementById(nome_);
        ora.setAttribute("src",nome_);
    }
    
    
  function swap(imgIndex, imgTarget)
    {
     document.getElementById("quadro").setAttribute("src",aryImages(imgIndex));
    }
    
    
function avanti()    
    {
    alert("avanti");
    }
    
function indietro()    
    {
    alert("indietro");
    }    
    
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}    

function printpage() {
window.print();  
}
