/* Requires prototype.js
function axCall(myAction, myISBNs) {
	
	var rURL = 'zproxy.asp?a=' + myAction + '&ISBN=' + myISBNs;
	//$("errors").update(rURL); //<div id="errors"></div>
	var AxReq = new Ajax.Request(rURL, {   
	method: 'get',
	onComplete: function(xml) {   
			// These need to be defined as <div>s in the output web page.
			var errMsg = $('error');  
			var mtaLink = $('mtaLink');
			if (xml.responseXML.getElementsByTagName("title").length > 0){
			
				errMsg.update(xml.responseXML.getElementsByTagName("title")[0].childNodes[0].nodeValue);  

			}else{
				var myItem = xml.responseXML.getElementsByTagName("Ref");
				var attlist = myItem.item(0).attributes;
				var att = attlist.getNamedItem("href").value;
				
				//alert(myItem[0].attributes.length);
				mtaLink.update('<a href="' + att + '" title="View video clip made by the author. Requires Windows Media Player." ><img src="images/mta.gif" border="0" width="82" height="45"><br/>Hear the author<br/> talk about their book</a>');
			} 
		}
	});
	
}

// end */

/* Meet the author rewrite : using jQuery */

function axCall(action, isbns)	{

	var vars = 'a=' + action + '&ISBN=' + isbns; 
	
	jQx.ajax({
		type: "POST",
		url: "zproxy.asp", 
		dataType: "xml",
		//async: true,
		data: vars,
		success: function(response){
			var ref = jQx('Ref', response).attr("href");
			jQx('#mtaLink').html('<a href="' + ref + '" title="View video clip made by the author. Requires Windows Media Player." ><img src="images/mta.gif" border="0" width="82" height="45"><br/>Hear the author<br/> talk about their book</a>');
			jQx('#display-biblio').append("<br /><br /><br /><br />");		
		}
	});

}