// added by Mark (Enhancement 113)
var w;

function alert(message) {

    var html = "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
    html += "<head><link rel=\"icon\" href=\"/favicon.ico\"></link></head>\n";
	html += "<body onblur=\"this.window.focus();\">\n"; //bug fix for IE8
	html += "<div style='font-family: Arial, Verdana, normal; font-size:10pt;'>\n";
	html += message.replace(new RegExp("\\n","g"), "<br>");
	html += "</div><br><br>";
	html += "<div align=\"center\"><a href=\"javascript:window.close();\"><img src=\"/images/buttons/close.gif\" border=\"0\" width=\"68\" height=\"18\"></a></div>" ;
	html += "\n</style>\n";
	html += "</body>\n";
	html += "</html>\n";

	var width = 400, height = 200;
    //Tax Explanations need to bigger
	if(message.indexOf("provide linking points") != -1) {
		width = 500;
		height = 350;
	}

	var top = screen.height/2 - height/2;
	var left = screen.width/2 - width/2;
	w = window.open("", "popup", "top=" +top+ ",left=" +left+ ",width=" +width +",height=" +height);
	w.document.open();
	w.document.write(html);
	w.document.close();
	
	
}
