motivo=1 è quello del body, cioè
codice:
<%		
			if Controllo_DoppioIP(listaip.fields("Nome_PC")) then 
			motivo=1
			%>
          [img]sem-off.gif[/img]
          <% else
%>
          [img]sem-on.gif[/img]
          <%
end if %>
e poi nel tag <script>

codice:
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  

if(condizione){
  if(motivo==1){
popUpWin = open('motivo.asp?<%= Server.HTMLEncode(MM_keepBoth) & MM_joinChar(MM_keepBoth) & "IP_1=" & listaip.Fields.Item("Nome_PC").Value %>', 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+650+',height='+400+',left=250, top=150,screenX='+left+',screenY='+top+'');
}
else{
  popUpWin = open('dettaglio.asp?<%= Server.HTMLEncode(MM_keepBoth) & MM_joinChar(MM_keepBoth) & "IP_1=" & listaip.Fields.Item("Indirizzo_IP").Value %>', 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+650+',height='+400+',left=250, top=150,screenX='+left+',screenY='+top+'');
}
}
</script>
giusto?