/**
 * @author rblanch
 * get quote insert html
 */
var handleSuccess = function(o){
	if(o.responseText !== undefined){
		// echo to the orginal div here
		document.getElementById('quoteText').innerHTML = o.responseText;
	}
}
var myQuote = "<p></p><div id='quoteName'>I have to say I am an extremely happy user of SecureCRT &#8212; it does what it says on the tin and does it well. &#8212; Alastair France, Consultant</div><br><p><a href='/customers/index.html'>Read more about VanDyke customers</a></p>";

var handleFailure = function(o){
	if(o.responseText !== undefined){
		// reference quote from var myQuote
		document.getElementById('quoteText').innerHTML = myQuote;
	}
}

var callback =
{
  success:handleSuccess,
  failure: handleFailure
};

