// JavaScript Document

function getPopup(path , accion , ventana, width, heigth, opciones) {
    var wSize = screen.availWidth;
    var hSize = screen.availHeight;
	var url = path+''+accion;
	var ventana = (ventana == null) ? "myventana" : ventana;
	var width = (width == null) ? 700 : width;
	var heigth = (heigth == null) ? 600 : heigth;
	var opciones = (opciones == null) ? 'resizable=no,status=no,menubar=no,toolbar=no,scrollbars=yes' : opciones;
	var vent = window.open(url, ventana, 'width='+width+',height='+heigth+','+opciones+'');
	vent.screenX = (wSize - width)/2;
	vent.screenY = (hSize - heigth)/2;
	vent.focus();
	return false;
}