function cambiamail (buzon) {
	var res = "";
	for (var n = 0; n < buzon.length; n++) res += String.fromCharCode(buzon.charCodeAt(n));
	if (res.indexOf('@') < 0) res = res + '@' + 'parapente.net';
	location = "mail" + "to:" + res;
}

function openWndZooms (zoom) { 
    openWndGeneral('/zooms.jsp?z='+zoom,'ampliacion','scrollbars=yes,width=400,height=400, resizable=yes'); 
}
function openWndZoomsDim (zoom, w, h) { 
    openWndGeneral('/zooms.jsp?z='+zoom,'ampliaciondim','scrollbars=yes,width=' + w + ',height=' + h + ', resizable=yes'); 
}

function openWndGeneral (paginaweb, nombrewnd, propiewnd) {
    remote = window.open(paginaweb,nombrewnd,propiewnd);
    if (remote != null) {
        if (remote.opener == null) remote.opener=self;
        remote.focus();
    }
}

function openWndMarkZooms (zoom1, zoom2) { 
    openWndGeneral('/mark/zooms.jsp?z1='+zoom1+'&z2='+zoom2,'marketimages','scrollbars=yes,width=400,height=400, resizable=yes'); 
}


function openWndCopyWright () { 
    openWndGeneral('/copywright.jsp','CopyWright','scrollbars=no,width=400,height=260, resizable=no'); 
}

function openWndDescargaA (fondo) { 
    openWndGeneral('/descargazoom.jsp?z='+fondo,'DescargaFondos','scrollbars=yes,width=800,height=600, resizable=yes'); 
}

function openWndDescargaB (fondo) { 
    openWndGeneral('/descargazoom.jsp?z='+fondo,'DescargaFondos','scrollbars=yes,width=1024,height=768, resizable=yes'); 
}

function openWndDescargaC (fondo) { 
    openWndGeneral('/descargazoom.jsp?z='+fondo,'DescargaFondos','scrollbars=yes,width=1200,height=1024, resizable=yes'); 
}

function openWndFlightzone (direc, tipo, indice) { 
    openWndGeneral('/zonasdevuelo/zooms.jsp?direc='+direc+'&tipo='+tipo+'&indice='+indice,'ampliacion','scrollbars=yes,width=800,height=600, resizable=yes'); 
}

function openWndFichavelas (tipo, indice) { 
    openWndGeneral('/vela/zoom_fichavelas.jsp?tipo='+tipo+'&indice='+indice,'fichavela','scrollbars=yes,width=800,height=550, resizable=yes'); 
}
function openWndOriginal (dirrec, foto, title) { 
    openWndGeneral('/zoom_original.jsp?dirrec='+dirrec+'&foto='+foto+'&title='+title,'original','scrollbars=yes,width=800,height=600, resizable=yes'); 
}

function openWndHlcZooms (zoom) { 
    openWndGeneral('/halcones/zooms.jsp?z='+zoom,'hlcampliacion','scrollbars=yes,width=820,height=620, resizable=yes'); 
}
