var ventana;
function abrirVentana(_url,ancha,alta,posx,posy,barras,resize,tolbar,estado) {
  if(ventana && !ventana.closed) ventana.close();
  paramVentana="width="+ancha+",height="+alta+",left="+posx+",top="+posy+",screenX="+posx+",screenY="+posy+",scrollbars="+barras+",resizable="+resize+",toolbar="+tolbar+",status="+estado+""
  ventana = window.open(_url,"verVentana",paramVentana);
  ventana.focus();
}

/*
var newWindow=null;
function openWindow(contentURL,windowName,windowWidth,windowHeight,windowPosx,windowPosy,windowScroll,windowResize,windowToolbar,windowStatus) {
	widthParam = 'width=' +windowWidth+' , height=' +windowHeight' , left=' +windowPosx+' , top=' +windowPosy+' , screenX=' +windowPosx+' , screenY=' +windowPosy+' , scrollbars=' +windowScroll+' , resizable=' +windowResize+' , toolbar=' +windowToolbar+' , status=' +windowStatus;
	
	alert(widthParam);
	
	
	newWindow=window.open(contentURL,windowName,widthParam);
	newWindow.focus()
}

function closeWindow() {
	if (newWindow != null) {
		newWindow.close();
		newWindow = null;
	}
}
*/ 