I tried what you said but it only worked for the xxxx-xx but not for the other case.
Here is the code.
function openpopup(a){
winpops=window.open("/popRMA.php?a="+a,"","width=600,height=338,scrollbars,resizable");
}
Here I call the function
$result = mysql_query($query, $connectsac) or die ("Error en el query: $query. " . mysql_error());
$row=mysql_fetch_row($result)
echo "<td width='72' height='1' nowrap align='center'><font color='#CCFFFF' size='4'><a href='java script:openpopup($row[1])'>$row[1]</a></font></td>";
The code of popRMA.php is:
<?php
echo "<html>";
echo "<head>";
echo "<meta http-equiv='Content-Language' content='es-pe'>";
echo "<meta name='GENERATOR' content='Microsoft FrontPage 5.0'>";
echo "<meta name='ProgId' content='FrontPage.Editor.Document'>";
echo "<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>";
echo "<title>CASOS</title>";
echo "</head>";
echo "<body background='/imagenes/fondoN.bmp' bgproperties='fixed'>";
echo "<p><b><font size='6'><img border='0' src='/imagenes/caso.gif' width='108' height='63'> ";
echo "<font color='#00FF00'> </font></font></b><font color='#99CCFF'><b><font size='7'> RMA ";
echo "<p> ";
echo " <FORM > ";
$connectlog = mysql_connect(localhost,root,mysql) or die("No se puede conectar!");
$query="select activo,codigo,ubicacion,lote from casos where rma='$a'";
mysql_select_db(logistica);
$result = mysql_query($query) or die ("Error en el query: $query. " . mysql_error());
$row=mysql_fetch_row($result);
echo " <p align='left'><font color='#99CCFF' size='5'> N° Activo: $row[0] </font></p>";
echo " <p align='left'><font color='#99CCFF' size='5'> Código: $row[1] </font></p>";
echo " <p align='left'><font color='#99CCFF' size='5'> Ubicación: $row[2] </font></p>";
echo " <p align='left'><font color='#99CCFF' size='5'> Lote: $row[3] </font></p>";
echo " </font></p>";
echo " </FORM> ";
echo "</body>";
echo "</html>";