/* Funzione che apre una finestra  
   ------------------------------- */

// Copyright Reaz Hoque, 1996, All right reserved	
// This code can be used for non-profit use only if	
// the copyright notice is kept.	
// 1 = true
// 0 = False

function OpWindows(adr, tool, loc_box, dir, stat, menu, scroll, resize, width, heigh) {    
	var address = adr;  
	var op_wid  = width;   
	var op_heigh = heigh;                 

	var op_tool  = (tool=='1')  ? 'toolbar=yes' : 'toolbar=no'; 
	var op_loc_box  = (loc_box=='1')  ? ',location=yes' : ',location=no'; 
	var op_dir  = (dir=='1')  ? ',,directories=yes' : ',,directories=no'; 
	var op_stat  = (stat=='1')  ? ',status=yes' : ',status=no'; 
	var op_menu  = (menu=='1')  ? ',menubar=yes' : ',menubar=no'; 
	var op_scroll  = (scroll=='1')  ? ',scrollbars=yes' : ',scrollbars=no'; 
	var op_resize  = (resize=='1')  ? ',resizable=yes' : ',resizable=no'; 
	var op_wid  = ",width="+width;  
	var op_heigh = ",height="+heigh;  
	
	var option =op_tool+op_loc_box+op_dir+op_stat+op_menu+op_scroll+op_resize+op_wid+op_heigh;
	window.open(address, "", option);  
}

function OpenWindow(adr, width, heigh) {    
	OpWindows(adr, 0, 0, 0, 0, 0, 1, 1, width, heigh);
}