function screen_size(image_color, html_color, dir, onload)
{
  if (screen.width == 800 && screen.height == 600)
  {
    document.write('<BODY STYLE="background-image: url(\'' + dir + 'images/bg/bg_' 
      + image_color + '800x600.jpg\'); background-attachment:fixed; repeat: no-repeat;\" onload="' 
        + onload + '" bgcolor="' + html_color + '">');
  }
  else if (screen.width == 1280 && screen.height == 1024)
  {
    document.write('<BODY STYLE="background-image: url(\'' + dir + 'images/bg/bg_' 
      + image_color + '1280x1024.jpg\'); background-attachment:fixed; repeat: no-repeat;\" onload="' 
        + onload + '" bgcolor="' + html_color + '">');
  }
  else if (screen.width == 1280 && screen.height == 768)
  {
    document.write('<BODY STYLE="background-image: url(\'' + dir + 'images/bg/bg_' 
      + image_color + '1280x768.jpg\'); background-attachment:fixed; repeat: no-repeat;\" onload="' 
        + onload + '" bgcolor="' + html_color + '">');
  }
  else
  {
    document.write('<BODY STYLE="background-image: url(\'' + dir + 'images/bg/bg_' 
      + image_color + '1280x1024.jpg\'); background-attachment:fixed; repeat: no-repeat;\" onload="' 
        + onload + '" bgcolor="' + html_color + '">');
  }
}

