// JavaScript Document

// questa funzione apre una ulr in una finestra secondaria
function popup(url) {
    newwindow = window.open(
	  url, 
	  "Scheda",
	  "height=500,width=400,left=50,top=50,resizable=yes,scrollbars=yes,toolbar=no,status=no");
	if (window.focus) 
	  {newwindow.focus()} 
	return false;
}

function popup_size(url, x, y) {
	var s = 
	  "height=" + y.toString() + 
	  ",width=" + x.toString() + 
	  ",left=50,top=50,resizable=yes,scrollbars=yes,toolbar=no,status=no"; 
    newwindow = window.open( url, "Scheda", s);
	if (window.focus) 
	  {newwindow.focus()}  
	 return false;
}

function popup_noresize(url, x, y) {
	var s = 
	  "height=" + y.toString() + 
	  ",width=" + x.toString() + 
	  ",left=50,top=50,resizable=no,scrollbars=no,toolbar=no,status=no"; 
    newwindow = window.open( url, "Scheda", s);
	if (window.focus) 
	  {newwindow.focus()}  
	  
	return false;
}


