<script>
<!-- Inicio
timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function PopUp(URL, WIDTH, HEIGHT, zdescricao)
{
var localX = (screen.width - WIDTH) / 2;
var localY = (screen.height - HEIGHT) / 2;
windowprops = "left=" + localX + ",top=" + localY +",width=" + WIDTH + ",height=" + HEIGHT;
text = "<html><head><title>Ampliar Imagem</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor='white'";
if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";
text += "background='" + URL + "' style='background-position=center; background-repeat= no-repeat'>";
if (timeout != 0) text +="<br><font face='tahoma' size='1'>Preview closes after " + timeout + " seconds.</font>";
text += zdescricao + "<br>";
text += "</body></html>";
preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}
// End -->
</script>e pra chamar ele eu faço assim
<a href="javascript:PopUp('DsWeb/uploaded_produtos/<%=zCodFor%>/<%=zimagegrande%>', 350, 350, <%=zdescricao%>)"></a>bom mais quando mando rodar
ele me tras a imagem certinho mais ao invez da descrição da imagem
ele me traz a palavra undefined
alguem sabe o que pode ser ??










