// JavaScript Document



function goToURL() {

  var i, args=goToURL.arguments; document.returnValue = false;

  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");

}





function win_popup(URL, w, h)

	{

		if ((w == 0) || (h == 0))

		{

			w = screen.width * 0.75;

			h = screen.height * 0.75;

		}

		

		var leftCorner = (screen.width) ? (screen.width - w)/2 : 0;

		var topCorner = (screen.height) ? (screen.height - h)/2 : 0;

		

		var win = window.open(URL,'_popup_win','width=' + w + ',height=' + h + ',top=' + topCorner + ',left=' + leftCorner + ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1');

		win.focus();

	}
	
	var win= null;
function goPop(mypage,myname,w,h,scroll){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}

function thumbit(img_name,img_src)
	{ 
	document[img_name].src = img_src;

	
	}
	
	function showhidecomments(commentahid)
	{
		if(commentahid.style.display=='none') { commentahid.style.display='inline';document['scrivi'].style.display = 'none';document['chiudi'].style.display = 'inline';} else {commentahid.style.display='none';document['scrivi'].style.display = 'inline';document['chiudi'].style.display = 'none';}
	}