// JavaScript Document
function wopen(url, name, w, h){
	w += 32;
	h += 96;
	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;
	var win = window.open(url,
	name,
	'width=' + w + ', height=' + h + ', ' +
	'left=' + wleft + ', top=' + wtop + ', ' +
	'location=no, menubar=no, ' +
	'status=no, toolbar=no, scrollbars=yes, resizable=no');
	// Just in case width and height are ignored
	win.resizeTo(w, h);
	// Just in case left and top are ignored
	win.moveTo(wleft, wtop);
	win.focus();
}
function abrir_ventana (url) {
	var ancho = 320;
	var alto = 150;
	var top = Math.round((screen.height-alto)/2);
	var left = Math.round((screen.width-ancho)/2);
	var v = open(url, 'declaracion', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top='+top+',left='+left+',width='+ancho+',height='+alto);
	v.focus();
}
