<!--
function bevestig(tekst,url) {
	if (confirm(tekst)) {
       document.location = url;
	   	return true;
	}
	return false;

}
		
function popup(url,w,h,scroll,name,loc)
{
	if (!name){
		var now = new Date();
   		name = now.getTime();
	}
	myleft=(screen.width)?(screen.width-w)/2:100;
	mytop=(screen.height)?(screen.height-h)/2:100;
	settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=" + scroll + ",location= " + loc +",directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
	newwindow=window.open(url,name,settings);	
	//return true;
}


function viewPhoto(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;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}	


var ie=document.all
var ns=document.layers
var ns6=document.getElementById&&!document.all

function enlarge(which,e){
	if (ie||ns6){
		crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
		if (crossobj.style.visibility=="hidden"){
			crossobj.style.left=ns6 ? pageXOffset+e.clientX : document.body.scrollLeft+event.clientX-300
			crossobj.style.top=ns6 ? pageYOffset+e.clientY : document.body.scrollTop+(event.clientY-230)
			crossobj.innerHTML='<img src="'+which+'" border=0>'
			crossobj.style.visibility="visible"
		}
		else
			crossobj.style.visibility="hidden"
		return false
	}
	
	else if (document.layers){
		if (document.showimage.visibility=="hide"){
			document.showimage.document.write('<img src="'+which+'" border=0>')
			document.showimage.document.close()
			document.showimage.left=e.x
			document.showimage.top=e.y
			document.showimage.visibility="show"
		}
		else
			document.showimage.visibility="hide"
		return false
	}

	else
		return true
}
function closepreview(){
	crossobj.style.visibility="hidden"
}
// -->
