var ventana,fichero; var headHTML = '\n\n'; headHTML += 'Imagen\n'; headHTML += '\n\n\n
\n\n'; var footHTML = '
\n\n\n'; function popupWin(imgURL) { fichero = imgURL; tmpImg = new Image(); tmpImg.src = fichero; x = ((screen.width / 2) - (100)); y = ((screen.height / 2) - (25)); var stbyHTML = '

Descargando Imagen... Por favor espere

'; ventana = window.open('','ventana','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resize=no,copyhistory=no'); ventana.resizeTo(200,50); ventana.moveTo(x,y); ventana.focus(); ventana.document.write(headHTML); ventana.document.write(stbyHTML); ventana.document.write(footHTML); ventana.document.close(); if (tmpImg.complete) { showImg(); } else { tmpImg.onload = showImg; } } function showImg() { if (ventana.closed) { return false; } w = tmpImg.width + 40; h = tmpImg.height + 60; x = ((screen.width / 2) - (w / 2)); y = ((screen.height / 2) - (h / 2)); var imgHTML = ' \n'; imgHTML += ' \n\n'; ventana.resizeTo(w,h); ventana.moveTo(x,y); ventana.focus(); ventana.document.write(headHTML); ventana.document.write(imgHTML); ventana.document.write(footHTML); ventana.document.close(); } function camClase(elemento,clase){ elemento.className = clase } function mClk(lnk){ location.href = lnk } function onl(){ top.document.title = "" } function onsubguest(obj){ if (obj.nombre.value==''){ alert("Debe introducir su NOMBRE") return false; } else if(obj.email.value==''){ alert("Debe introducir su dirección de EMAIL") return false; } else if(obj.comentarios.value==''){ alert("Debe introducir sus COMENTARIOS") return false; } else { return true; } }