var handleDeliciousSuccess = function(o){
	if(o.status == 200){ //responseText !== undefined){
		deliciousdiv.innerHTML = o.responseText;
	} else {
		deliciousdiv.innerHTML = "We are sorry but there was a problem fetching the data from the server.  Please try again";
	}
};

var handleDeliciousFailure = function(o){
	if(o.responseText !== undefined){
		deliciousdiv.innerHTML = "There was a problem getting the data from the server.  Please try again.  Errorlog: <ul>";
		deliciousdiv.innerHTML += "<li>Transaction id: " + o.tId + "</li>";
		deliciousdiv.innerHTML += "<li>HTTP status: " + o.status + "</li>";
		deliciousdiv.innerHTML += "<li>Status code message: " + o.statusText + "</li></ul>";
	}
};

var deliciousCallback =
{
  success:handleDeliciousSuccess,
  failure:handleDeliciousFailure,
  argument:['foo','bar']
};

var deliciousdiv = ""; // make deliciousdiv globally accessible to get the id and insert the contents returned from the server
function getDeliciousNetwork(){
	var deliciousPostData = "";
	deliciousdiv = document.getElementById('canvasWrap');
	var request = YAHOO.util.Connect.asyncRequest('POST', 'loadArchivedNetwork.php', deliciousCallback, deliciousPostData);
}
