function AX_openWin(url,nome,width,height,left,top,centra,scroll,resize,depend){
	if (centra == 1){
		var left = (screen.width-width)/2;
		var top = (screen.height-height)/2;
	}
	var dimen = 'width='+width+',height='+height+',left='+left+',top='+top;
	var propa = 'menubar=no,toolbar=no,location=no,directories=no,status=no';
	var propb = 'scrollbars='+scroll+',resizable='+resize+',dependent='+depend;
	var newWin = window.open(url,nome,dimen+','+propa+','+propb);
	window.onblur = function(){
	  try { if(!newWin.closed) newWin.focus(); }
		catch(e) {}
	}
}

function AX_popUp(width,height){
	var ie = document.all;
	var dom = document.getElementById;
	crossobj=(dom)?document.getElementById('message').style : ie? document.all.message : document.message
	crossobj.visibility=(dom||ie)? "visible" : "show"
	crossobj.left = (screen.width-width)/2;
	crossobj.top = height;
}

function AX_closePopUp(){
	crossobj.visibility = 'hidden';
	return false;
}

function AX_writeValue(nameform,namefield,value){
	nf = document.forms[nameform];
	nf.elements[namefield].value = value;
}

function addbookmark(){
if (window.sidebar) {
    // versione FF
    window.sidebar.addPanel(document.title, location.href,'');
} else if( window.external ) {
    // versione IE
    window.external.AddFavorite( location.href, document.title); 
}
}