// try
// {
	function _ps_onSuccessCallback(resultObj)
	{
		// alert("Top of callback function");
		var DIV_WIDTH = 500;
		var document = $(document);
		var win = $(window);
		var winHeight = win.height();
		var winWidth = win.width();
		
		var closeAnchor = $("<div style='float: right;'><a href='#'>Close</a></div><br style='clear: both;' />");
		closeAnchor.bind("click", function(e)
		{
			// alert("Clicked");
			outerDiv.remove();
			return false;
		});
		
		/* var outerDiv = $("<div id='pollScript_resultOverlay' style='padding: 10px; text-align: left; position: absolute; z-index: 3000; width: " + DIV_WIDTH + "px; top: " + (winHeight / 4) + "px; left: " + ((winWidth - DIV_WIDTH) / 2) + "px; border: 1px solid black; background-color: white;'></div>");		
		var header = $("<h2 style='padding-bottom: 20px; float: left;'>Additional question information</h2>");
		var contentArea = $("<div style='padding-top: 10px;'></div>");
		contentArea.html(resultObj.info.replace(resultObj.singleQuoteEscape, "'")); */
		// alert(resultObj.overlayString.replace(resultObj.singleQuoteEscape, "'"));
		var outerDiv = $(resultObj.overlayString.replace(resultObj.singleQuoteEscape, "'"));
		
		// NOTE: Error was somewhere in the CSS function, but IE was refusing to error out in the order I was originally doing things.
		// The error was an extra comment after the width property.
		outerDiv.css(
		{
			"top": (winHeight - outerDiv.height()) / 2 + "px",
			"left": ((winWidth - DIV_WIDTH) / 2) + "px",
			"position": "absolute",
			"z-index": 3000,
			"width": DIV_WIDTH + "px"
		});/*  */
		
		// alert("Window height: " + winHeight + ", div height: " + outerDiv.height());
		
		/* outerDiv.append(header);
		outerDiv.append(closeAnchor);
		outerDiv.append(contentArea); */
		outerDiv.prepend(closeAnchor);
		$("body").append(outerDiv);
		// alert("Window height: " + winHeight + ", div height: " + outerDiv.height() + ", scroll top: " + $(document).scrollTop());
		
		// NOTE: Added this because the outer div height isn't accurate until the div is applied to the DOM.
		// NOTE: This is wrong because you would have to set the top to whatever space is before the viewport, plus the space needed to
		// get to the center of the viewport.
		outerDiv.css("top", document.scrollTop() + (winHeight - outerDiv.height()) / 2 + "px");
	}
// }
// catch(e)
// {
	// alert("Error: " + e.description);
// }
// alert("Function created");