document.write('      <table align=center>');
document.write('        <tr> ');
document.write('          <td> ');
document.write('<!-- Sophos info feed: latest virus alerts -- START -->');

// Want to customise the look and feel of the virus information
// on your site?  Simply change the following values to your
// own preferences.
//
// Changing the value of 'count' will change the number of rows
// displayed.
// Changing the value of 'target' to 'new' will display the link in 
// a new window.

// *****************************************************************

var bgcolour_main     = '#EDF6FF'
var bgcolour_heading  = '#D8DFF2'
var text_colour       = '#000000'
var link_colour       = '#0000FF'
var font_size         = '1'
var font_face         = 'arial, helvetica, sans-serif'
var count             =  10   // number should be between 1 and 10
var first_column      = 'yes' // 'yes' or 'no'
var cellspacing       = 'yes' // 'yes' or 'no'
var target            = '_blank' // '_blank' or 'new'

// *****************************************************************
//  Be careful not to change anything below this line!


var htmltxt = "";
var font_desc = '<font class=bodytext face="' + font_face + '"" color="' + text_colour + '">';
var tmp_count = 0;
    
if (first_column == "no") { 
    colspan = 1;
} else {
    colspan = 2;
}  

if (cellspacing == "no") { 
    cellspacing = 0;
} else {
    cellspacing = 2;
}  

if (count > 0) {
    if (count > 10) {count = 10}
    htmltxt += '\n<table width=300 cellpadding="6" cellspacing="' 
      + cellspacing + '" border="0" bgcolor="#ffffff">';
    if (count == 1) {
      htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
        + bgcolour_heading + '">' + font_desc 
        + '<b>Latest Virus Alert</b></font></td></tr>';
    } else { 
      htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
        + bgcolour_heading + '">' + font_desc + '<b>Latest ' 
        + count + ' Virus Alerts</b></font></td></tr>';
    }

  for (var i=0; i<tenalerts.length; i+=3) {
    tmp_count++;
    if (tmp_count > count) {
      break;
    } else {
      if (first_column == "no") {
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + tenalerts[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + tenalerts[i+1]
        + '</nobr></font></a></font></td></tr>';
      } else {  
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<nobr>' + tenalerts[i+0] 
        + '</nobr></font></td><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<a href="' + tenalerts[i+2] + '" target="' 
        + target + '"><font color="'
        + link_colour + '"><nobr>' + tenalerts[i+1]
        + '</nobr></font></a></font></td></tr>';
      }
    }  
  }
} else {
    document.write
    ("=== Sophos info feed error: Specify value of count > 0 ===");
}


htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
  + bgcolour_heading + '">' + font_desc 
  + 'Source: <a href="http://www.sophos.com" target="_blank' 
  + target + '"><font color="' + link_colour 
  + '">Sophos Anti-Virus</font></a></font></td></tr>';
htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="'
  + '#FFFFFF' + '"><!--' + font_desc 
  + '<a href="http://www.sophos.com/virusinfo/infofeed/" target="_blank' 
  + target + '"><font color="' + link_colour 
  + '">Add this info to your website</font></a></font>--></td></tr>';
htmltxt += '\n</table>';

document.write(htmltxt);

document.write('            <!-- Sophos info feed: latest virus alerts -- END -->');
document.write('</td>');

document.write('          <td> ');

/*
// do not show top viruses for last month
document.write('<!-- Sophos info feed: top viruses last month -- START -->');


// Want to customise the look and feel of the virus information
// on your site?  Simply change the following values to your
// own preferences.
//
// Changing the value of 'count' will change the number of rows
// displayed.
// Changing the value of 'target' to 'new' will display the link in 
// a new window.

// *****************************************************************

var bgcolour_main     = '#EDF6FF'
var bgcolour_heading  = '#D8DFF2'
var text_colour       = '#000000'
var link_colour       = '#0000FF'
var font_size         = '1'
var font_face         = 'arial, helvetica, sans-serif'
var count             =  10   // number should be between 1 and 10
var first_column      = 'yes' // 'yes' or 'no'
var cellspacing       = 'yes' // 'yes' or 'no'
var target            = '_blank' // '_blank' or 'new'

// *****************************************************************
//  Be careful not to change anything below this line!

var htmltxt = "";
var font_desc = '<font class=bodytext face="' + font_face + '"" color="' + text_colour + '">';
var tmp_count = 0;

if (first_column == "no") { 
    colspan = 1;
} else {
    colspan = 2;
}  

if (cellspacing == "no") { 
    cellspacing = 0;
} else {
    cellspacing = 2;
}  

if (count > 0) {
  if (count > 10) {count = 10}
  htmltxt += '\n<table cellpadding="6" cellspacing="' 
    + cellspacing + '"border="0" bgcolor="#ffffff">';
  if (count == 1) {
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="' 
      + bgcolour_heading + '">' + font_desc + '<b>Top virus in ' 
      + month + '</b></font></td></tr>';
  } else {  
    htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="' 
      + bgcolour_heading + '">' + font_desc + '<b>Top ' 
      + count + ' viruses in ' + month + '</b></font></td></tr>';
  }

  for (var i=0; i<topten.length; i+=3) {
    tmp_count++;
    if (tmp_count > count) {
      break;
    } else {
      if (first_column == "no") {
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
          + font_desc + '<a href="' + topten[i+2] + '" target="' 
          + target + '"><font color="' 
          + link_colour + '"><nobr>' + topten[i+1] 
          + '</nobr></font></a></font></td></tr>';
      } else {
        htmltxt += '\n<tr><td bgcolor="' + bgcolour_main + '">' 
        + font_desc + '<nobr>' + topten[i+0] 
        + '</nobr></font></td><td bgcolor="' + bgcolour_main 
        + '">' + font_desc + '<a href="' + topten[i+2] 
        + '" target="' + target 
        + '"><font color="' + link_colour + '"><nobr>' + topten[i+1] 
        + '</nobr></font></a></font></td></tr>';
      }  
    }  
  }

  htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="' 
    + bgcolour_heading + '">' + font_desc 
    + 'Source: <a href="http://www.sophos.com" target="_blank' 
    + target + '"><font color="' + link_colour 
    + '">Sophos Anti-Virus</font></a></font></td></tr>';
  htmltxt += '\n<tr><td colspan="' + colspan + '" bgcolor="' 
    + '#FFFFFF' + '"><!--' + font_desc 
    + '<a href="http://www.sophos.com/virusinfo/infofeed/" target="_blank' 
    + target + '"><font color="' + link_colour 
    + '">Add this info to your website</font></a></font>--></td></tr>';
  htmltxt += '\n</table>';

  document.write(htmltxt);
} else {
  document.write
  ("=== Sophos info feed error: Specify value of count > 0 ===");
}  
document.write('            <!-- Sophos info feed: top viruses last month -- END -->');
*/

document.write('</td>');

document.write('        </tr>');
document.write('      </table>');

