/**
* Displays a formatted system popup message.
* @param {string} message - The message content to be displayed within the popup.
* @param {object} buttons - KVP of button_label=>js_action (optional).
* @param {string} template - Popup template to use (optional).
* @param {int} width - Popup width (optional).
* @param {int} height - Popup height (optional).
* @return {bool} Always returns FALSE to stop any href links.
*/
function thickMsgBox(message, buttons, template, width, height)
{
	// set optional values
	template 	= template 	|| "default";
	width 		= width 	|| 300;
	height 		= height 	|| 180;

	// create button url
	var buttons_url = "";
	for(button_item in buttons)
	{
		buttons_url = buttons_url + "b_"+escape(button_item)+"="+escape(buttons[button_item])+"&";
	}
	var full_url = "message="+escape(message)+"&"+buttons_url;
	
	// create template name
	template = "/thick_msgbox_"+template+".php";

	tb_show('Message Popup', template+'?width='+width+'&height='+height+'&'+full_url);

	return false;
}

/**
* EXAMPLE USAGE
* <a href="#" onClick="javascript:
* var buttons = {
* 	Ok			: 'alert(\'Ive been clicked!\')',
* 	Cancel  		: ''
* } ;
* return thickMsgBox('Lorem Ipsum is simply dummy text of the printing and typesetting industry.', buttons, 'default', 280, 90);">Click Me</a><br>
*/
