// JavaScript Document
//<![CDATA[
	var publish = function(myUrl,myDest) {
		var div = document.getElementById(myDest);
		/*
		 * This method will traverse the response XML document and build a
		 * simple HTML module comprised of data from the following tags:
		 *
		 * Data in the first <title> tag in the document.
		 * Data in the first <lastBuildDate> tag in the document.
		 * HTML from the second <description> tag in the document.
		 *
		 */ 
		function successHandler(o){ 
			var html = o.responseText;
	 
	 		// Format and display results in the response container. 
			div.innerHTML = html; 

			if (undefined != div.fire) {
	//			alert("I got a fire here!");
				// fire();
			}
		//	else { alert("fire?  What fire?"); }
		} 
	 
		/*
		 *
		 * This is a simple failure handler that will display
		 * the HTTP status code and status message if the resource
		 * returns a non-2xx code.
		 *
		 */ 
		function failureHandler(o){ 
			div.innerHTML = o.status + " " + o.statusText; 
		} 

		var request = YAHOO.util.Connect.asyncRequest('GET', myUrl, { success:successHandler, failure:failureHandler }); 

	}
//]]>
