function convert_to_html(text) {
	text = text.replace("å", "&aring;");
	text = text.replace("ä", "&auml;");
	text = text.replace("ö", "&ouml;");
	text = text.replace("Å", "&Aring;");
	text = text.replace("Ä", "&Auml;");
	text = text.replace("Ö", "&Ouml;");
	return text;
}
function print_A_D($content,$limit,$width,$divID) {
	$header_font_color = "#ffffff";
	$header_bgcolor = "#c56e0e";
	$bgcolor = "#ffffff";
	$font_size = "12";
	$font = "'Trebuchet MS'";
	$link_color = "#9d009d";
	$border_color = "c56e0e";
	if($limit == 1) {
		document.getElementById($divID).innerHTML = '<table cellspacing="0" cellpadding="3" id="yahoo" style="width: '+ $width +'; margin-bottom: 10px;"><tr><td style="background-color: '+$header_bgcolor+'; color: '+$header_font_color+'; font-weight: bolder; font-family: '+$font+'; font-size: 10px; text-align: left;">SPONSRADE L&Auml;NKAR</td></tr><tr><td style="font-size: '+$font_size+'px; font-family: '+$font+'; text-align: left; font-weight: normal; border: 1px solid #'+$border_color+'; background-color: '+$bgcolor+';"><a href="'+ $content[8] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[9]) + '</a><br />'+ convert_to_html($content[6]) +'</td></tr></table>';
	}else if($limit == 2) {
		document.getElementById($divID).innerHTML = '<table cellspacing="0" cellpadding="3" id="yahoo" style="width: '+ $width +';"><tr><td style="background-color: '+$header_bgcolor+'; color: '+$header_font_color+'; font-family: '+$font+'; font-weight: bolder; font-size: 10px; text-align: left;">SPONSRADE L&Auml;NKAR</td></tr><tr><td style="font-size: '+$font_size+'px; font-family: '+$font+'; text-align: left; font-weight: normal; border: 1px solid #'+$border_color+'; background-color: '+$bgcolor+';"><a href="'+ $content[8] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[9]) + '</a><br />'+ convert_to_html($content[6]) +'<br /><br /><a href="'+ $content[14] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[15]) + '</a><br />'+ convert_to_html($content[12]) +'</td> </tr></table>';
	}else if($limit == 3) {
		document.getElementById($divID).innerHTML = '<table cellspacing="0" cellpadding="3" id="yahoo" style="width: '+ $width +';"><tr><td style="background-color: '+$header_bgcolor+'; color: '+$header_font_color+'; font-family: '+$font+'; font-weight: bolder; font-size: 10px; text-align: left;">SPONSRADE L&Auml;NKAR</td></tr><tr><td style="font-size: '+$font_size+'px; font-family: '+$font+'; text-align: left; font-weight: normal; border: 1px solid #'+$border_color+'; background-color: '+$bgcolor+';"><a href="'+ $content[8] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[9]) + '</a><br />'+ convert_to_html($content[6]) +'<br /><br /><a href="'+ $content[14] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[15]) + '</a><br />'+ convert_to_html($content[12]) +'<br /><br /><a href="'+ $content[20] +'" target="_blank" style="font-family: '+$font+'; color: '+$link_color+'; font-weight: bolder; font-size: '+$font_size+'px;">' + convert_to_html($content[21]) + '</a><br />'+ convert_to_html($content[18])+'</td> </tr></table>';
	}
}