1a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// Copyright 2010 the V8 project authors. All rights reserved.
2a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// Redistribution and use in source and binary forms, with or without
3a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// modification, are permitted provided that the following conditions are
4a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// met:
5a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//
6a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//     * Redistributions of source code must retain the above copyright
7a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       notice, this list of conditions and the following disclaimer.
8a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//     * Redistributions in binary form must reproduce the above
9a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       copyright notice, this list of conditions and the following
10a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       disclaimer in the documentation and/or other materials provided
11a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       with the distribution.
12a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//     * Neither the name of Google Inc. nor the names of its
13a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       contributors may be used to endorse or promote products derived
14a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//       from this software without specific prior written permission.
15a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org//
16a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org
28a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.orgvar document = new Object();
29a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.orgdocument.getElementById = function(s) { return { style: {}}};
30a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.orgfunction x(p0, p1, p2, p3) {
31a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  document.getElementById(p1+p0).style.display='';
32a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  document.getElementById(p1+''+p0).style.backgroundColor = "";
33a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  document.getElementById(p1+''+p0).style.color="";
34a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  document.getElementById(p1+''+p0).style.borderBottomColor = "";
35a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  for (var i = p3; i <= p2; ++i) {
36a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org    if (i != p0) {
37a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org      document.getElementById(p1+i).style.display='';
38a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org      document.getElementById(p1+''+i).style.backgroundColor = "";
39a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org      document.getElementById(p1+''+i).style.color="";
40a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org      document.getElementById(p1+''+i).style.borderBottomColor = "";
41a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org    }
42a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org  }
43a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org}
44a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.org
45a55512615f5adc085d23bc8589d155c4b579fb7bkasperl@chromium.orgx(1, "xxx", 10000, 1)
46