var requiredMajorVersion = 8;
var requiredMinorVersion = 0;
var requiredRevision = 0;
function client_data(info)
{
  if (info == 'width')
  {
    width_height_html = '<h4>Screen Resolution</h4>';
    width = (screen.width) ? screen.width:'';
    height = (screen.height) ? screen.height:'';
    document.write('<input type="hidden" name="screen_width" value="'+width+'" />');
    document.write('<input type="hidden" name="screen_height" value="'+height+'" />');
    width_height_html += '<p>' + width + " x " +
      height + " pixels</p>";
    (width && height) ? document.write(width_height_html):'';
  }
  else if (info == 'js' )
  {
    document.write('<div id="goodicon"><p class="green">JavaScript is enabled.</p></div>');
    document.getElementById('js').value = '1';
  }
  else if ( info == 'cookies' )
  {
    expires ='';
    Set_Cookie( 'cookie_test', 'it_worked' , expires, '', '', '' );
    string = '<h4 >Cookies</h4>';
    if ( Get_Cookie( 'cookie_test' ) )
    {
      string += '<div id="goodicon"><p class="green">Cookies are enabled.</p></div>';
      string += '<input type="hidden" name="cookies" value="1" />';
    }
    else {
      string += '<div id="alerticon"><p class="red">Cookies are disabled.<br /><span class="small"><a href="http://www.google.com/support/websearch/bin/answer.py?hl=en&amp;answer=35851">How do I enable cookies?</a></span></p></div>';
      string += '<input type="hidden" name="cookies" value="0" />';
    }
    document.write( string );
  }
}
