<?xml version="1.0"?> 

<?xml-stylesheet href="chrome://navigator/skin/navigator.css" type="text/css"?> 

<window xmlns:html="http://www.w3.org/TR/REC-html40"
        xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
       >
       <data>
       	<broadcaster id="NetDialog:Message"/>
       </data>
        <dialog>
      		<observes element="NetDialog:Message"   attribute="text" onbroadcast="onUpdate()"/>
    	</dialog>
  <html:script>
	function onUpdate()
	{
		dump("onUpate \n");
    	var msg = document.getElementById("NetDialog:Message");
    	if ( msg)
    	{
     		var text = msg.getAttribute("text");
        	dump( text +"\n" );
        	var prompt = (document.getElementById("message"));
        	if ( prompt )
        	{
        		dump(" setting message \n" );
        		prompt.childNodes[0].nodeValue = text;
        	}
        }
    }    
</html:script>
          
    
    
   <html:table>
   <html:tr >
   	<html:td>
   		<html:img html:src="chrome://navigator/skin/questionl.gif"></html:img>
   	</html:td>
   	
   	<html:td>	
   		<html:span id="message">m</html:span>
	 </html:td>
   	

   </html:tr>
 
	
  <html:tr>
  	<html:td></html:td>
  	<html:td html:align="justify">
  	<html:button id="OKButton">  Yes </html:button>
  	<html:button id ="CancelButton"> No </html:button>
        </html:td>
 </html:tr>
 </html:table>
</window> 
