//Abre una nueva ventana con el tamaño deseado y con las características deseadas.

// popUp producto
function popUp(URL,anchura,altura,scroll,status,resizable) {
var winW = 800, winH = 600;
//var anchura=600,altura=350;
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
 // winW = window.innerWidth;
 // winH = window.innerHeight;
  winW = screen.width;
  winH = screen.height;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = screen.width;
  winH = screen.height;
 }
}
izquierda = (winW/2) - anchura/2 
arriba = (winH/2) - altura/2 	
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars="+ scroll +",location=0,status="+ status +",menubar=0,resizable="+ resizable +",width=" + anchura + ",height=" + altura + ",left=" + izquierda + ", top="+ arriba +"');");
}

/*
<script language="JavaScript" src ="openwin.js"></script>
<a href="popUp(javascript:'nombre.html',350,550,1,1,1);">abrir</a>

caracteríaticas de la ventana
- Mostrar la barra de estado: statusbar=1
- Mostrar la barra de herramientas: toolbar=0
- Mostrar las barras de desplazamiento: scrollbars=0
- Tamaño de ventana modificable: resizable=0
- Mostrar la barra de direcciones: location=0
- Mostrar la barra de menú: menubar=0
- Página que se ha de abrir:
- Ancho de la ventana: width=350
- Alto de la ventana: height=550
 */
