

function Abrirventana1 (num) {

var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=600, height=600, top=85, left=140";
window.document.title = 'Noticia';
window.open('noticia1.php?id='+num,"",opciones);

}

var ventana 
var cont=0 
function afoto(cual) 
{ 

if(cont==1){ventana.close();ventana=null} 
ventana=window.open('','ventana','resizable=no,scrollbars=no') 
ventana.document.write('<html><head><title>Fustesbonet.com</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">') 
ventana.document.close() 
cont++ 
} 
function redimensionar(ancho,alto) 
{ 
ventana.resizeTo(ancho+12,alto+28) 
ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2) //centra la ventana. Eliminar si no se quiere centrar el popup 
} 

function ver_imagenes (num) {

var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=450, height=430, top=85, left=140";
window.document.title = 'FustesBonet';
window.open('ver_imagenes.php?id='+num,"",opciones);
}
function ver_imagenes_parquet (num) {

var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=800, height=800, top=85, left=140";
window.document.title = 'FustesBonet';
window.open('ver_imagenes_parquet.php?id='+num,"",opciones);
}

function PopUp(img){ 
foto1= new Image(); 
foto1.src=(img); 
Control(img); 
} 
function Control(img){ 
    if((foto1.width!=0)&&(foto1.height!=0)){ 
        verFoto(img); 
    }else{ 
        funcion="Control('"+img+"')"; 
        intervalo=setTimeout(funcion,20); 
        } 
    } 
function verFoto(img){ancho=foto1.width+20; 
    alto=foto1.height+20; 
    cadena="width="+ancho+",height="+alto; 
	
    ventana=window.open(img,"",cadena); 
	
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


