function decodeMail(obj)
{
    var parsed = obj.href.replace(/\[antispam\]/g, "@");
    obj.href = parsed;
}

function printContent(invardet) {
	NFW = window.open('','displayWindow');
	win=NFW.window.document; 
	win.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">');
	win.writeln('<html><head>');
	win.writeln('<title>Rottneros: '+ document.title +'</title>');
	win.writeln('<link href="/styles/styles.css" rel="stylesheet" type="text/css"/>');
	win.writeln('<link href="/styles/positioning.css" rel="stylesheet" type="text/css"/>');
	win.writeln('</head>');
	win.writeln('<body style="margin: 5px;"><div id="main">');
	//win.writeln('<img src="http://service2.halvarsson.se/rottneros/img/'+invardet+'.png"');
	win.writeln(document.getElementById('main').innerHTML);
	win.writeln('</div></body></html>');
}