function printPage() 
    {
        var da = ( document.all ) ? 1 : 0;
        var pr = ( window.print ) ? 1 : 0;
    	
        if( !pr )
	        return;
    	
        var printArea = document.getElementById( "printarea" );
    	
        if( printArea == null && da ) 
	        printArea = document.all.PrintArea;
    	
        if( printArea ) 
        {
	        var sStart = "<html> \n<head> \n <link rel=\"stylesheet\" type=\"text/css\" href=\"/EPiSekt/medlstyles/color_standard.css\"> \n<link rel=\"stylesheet\" type=\"text/css\" href=\"/EPiSekt/medlstyles/design.css\"> \n <link rel=\"stylesheet\" type=\"text/css\" href=\"/EPiSekt/medlstyles/styles_print.css\"> \n<link rel=\"stylesheet\" type=\"text/css\" href=\"/EPiSekt/medlstyles/textfont_print.css\"> \n<link rel=\"stylesheet\" type=\"text/css\" href=\"/EPiSekt/medlstyles/textsize_print.css\"> \n</head> \n<body id=\"PrintPage\" onload=\"javascript:window.print();\"> \n<div id=\"mainbox_all\"> \n<div class=\"main_all_print\">"; 
    		
	        var sStop = "</div> \n</div> \n</body> \n</html>";
    		
	        var w = window.open( 'about:blank','printWin','width=600,height=500,scrollbars=yes' );
	        wdoc = w.document;
	        wdoc.open();
    		
	        wdoc.write( sStart + printArea.innerHTML );
	        wdoc.writeln( sStop );
	        wdoc.close();
        }
    }

