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(id,width,height){
	var ie = document.all;
	var dom = document.getElementById;
	var crossobj=(dom)?document.getElementById(id).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(id){
	var ie = document.all;
	var dom = document.getElementById;
	var crossobj=(dom)?document.getElementById(id).style : ie? document.all.message : document.message
	crossobj.visibility = 'hidden';
	return false;
}

function AX_writeValue(nameform,namefield,value){
	nf = document.forms[nameform];
	nf.elements[namefield].value = value;
}
