
function chimg(srcfoto) {
  document.images['foto'].src= srcfoto;
}


function sfumaimg(da,a){
// document.images[a].src = document.images[da].src;


//transitions[0] = "progid:DXImageTransform.Microsoft.Pixelate(duration="+crossFadeDuration+")";

//   document.getElementById(a).style.filter = "progid:DXImageTransform.Microsoft.GradientWipe(duration=1)";
   document.getElementById(a).style.filter = "progid:DXImageTransform.Microsoft.Fade(duration=1)";
   document.getElementById(a).filters[0].Apply();
   document.getElementById(a).style.background = 'url("'+document.images[da].src+'")';
   document.getElementById(a).filters[0].Play();
}



function scrollcolor(c1,c2,c3,c4,c5,c6,c7,c8){ 
 if(document.all){ 
  document.body.style.scrollbar3dlightColor =c1;
  document.body.style.scrollbarArrowColor =c2; 
  document.body.style.scrollbarBaseColor =c3; 
  document.body.style.scrollbarDarkShadowColor =c4; 
  document.body.style.scrollbarFaceColor =c5; 
  document.body.style.scrollbarHighlightColor =c6; 
  document.body.style.scrollbarShadowColor =c7; 
  document.body.style.scrollbarTrackColor=c8; 
 } 
}


function change_parent_url(url){	    
 parent.document.location=url;   
}


function vini_url(url){ 	    
 parent.viniRX.document.vini.location=url;   
}





//da testare :


function changeclass(riga,newclass) {
//riga.style.color = colore;
      alert(riga.id);
      document.getElementById(riga.id).className = newclass;
}

function sele_com(riga) {
// var FLAGPOSC = 'FLAGPOSC['+x+']';

// if (document.getElementById(FLAGPOSC).value != 'X') {
//          document.getElementById(FLAGPOSC).value = 'X';
//          riga.style.color = colore;
//	}
//	else {
//          document.getElementById(FLAGPOSC).value = '';
//          riga.style.color = '#00009C';
//	}
}