
function highlight(obj,mode){
	var td = obj; 
	if(mode == 'on'){
		td.style.cursor = 'hand';
		td.style.background = "#ABC6EF";
		td.style.color = "#FFFFFF";
		td.children.tags('A')[0].style.color = "#FFFFFF";
	}
	else{
		td.style.cursor = 'default';
		td.style.background = "#FFFFFF";
		td.style.color = "#dd87b8";
		td.children.tags('A')[0].style.color = "#DD87B8";
	}
}

function button(obj,mode){
	var td = obj; 
	if(mode == 'on'){
		td.style.cursor = 'hand';
		td.style.background = "#861385";
		td.style.color = "#FFFFFF";
	}
	else{
		td.style.cursor = 'default';
		td.style.background = "#FFFFFF";
		td.style.color = "#861385";
	}
}

function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}

function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  var h,w
  h = screen.height //height of screen, not just the parent window
  w = screen.width //width of the screen, not just the parent window
  var l,t
  l = parseInt((w-largh)/2)
  t = parseInt((h-altez)/2)
  stringa="width="+largh+",height="+altez+",left="+l+",top="+t;
  finestra=window.open(img,"",stringa);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function AlertNoItems(){ 
alert("You do not have any items in your cart.")
} 
//-->
