function google_ad_request_done(google_ads)
{
	if (google_ads.length < 1 )
		return;
	// disclaimer_switch, heading_text, company_name variables set by calling perl program, if needed
	var foot_note_marker= "";
	if (!(typeof(disclaimer_switch) == "undefined"))
	{
		if (disclaimer_switch)
		{
			foot_note_marker= "&#134;";
		}
	}
	if (typeof(company_name) == "undefined")
	{
		company_name = "";
	}
	
	var adtext_style="adtext";
	var adlink_style="adlink";
	if (google_ads.length == 1)
	{
		adlink_style="adlink_single";
		adtext_style="adtext_single";
	}
	
	var ad_heading1 = "Ads by Google";
	var ad_heading2 = "";
	if (!(typeof(heading_text) == "undefined"))
	{
		if (heading_text)
		{
			ad_heading2 = " on " + heading_text;
		}
	}
	
	// Right-justify the "Ads by Google" string unless this is the description
	// page; this is identified by a defined and non-null value for disclaimer_switch
	if (!(typeof(disclaimer_switch) == "undefined"))
	{
		if (disclaimer_switch)
		{
			document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"google_adsense\"><tr class=\"adsbygoogle\"><td>");
		}
		else
		{
			document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"google_adsense\"><tr class=\"adsbygoogle\"><td align=\'right\'>");
		}
	}
	else
	{
		document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"google_adsense\"><tr class=\"adsbygoogle\"><td align=\'left\'>");
	}
	if (google_info.feedback_url)
	{
		document.write("<a href=\"" + google_info.feedback_url + "\" class=\"adsbygoogle\">" + ad_heading1 + "</a>");
	}
	else
	{
		document.write(ad_heading1);
	}
	document.write(ad_heading2, foot_note_marker, "</td></tr>");
	document.write("<tr><td><img src=\"/corporateaffiliations/images/separator.gif\" width=\"1\" height=\"5\"></td></tr>");
	document.write("<tr><td>");
	if (google_ads[0].type == 'text')
	{
		for(i = 0; i < google_ads.length; ++i)
		{
			document.write("<a href=\"" +  google_ads[i].url + "\" class=\" " +adlink_style+ " \">" + google_ads[i].line1 + "</a><span class=\" " +adtext_style+ " \">&nbsp;" + google_ads[i].line2 + "&nbsp;" + google_ads[i].line3 + "</span><br><br>");
		}
	}
	document.write("</td></tr>");
	if (!(typeof(disclaimer_switch) == "undefined"))
	{
		document.write("<tr><td>", foot_note_marker ,"The ads are not affiliated with ", company_name, " </td></tr>");
	}
	document.write("</table>");
}
