context: function onLoad() {    //var Log = new YAHOO.widget.LogReader();    var compass = document.getElementById('compass');    if (compass) {        var points = document.getElementById('compass').getElementsByTagName('a');        points[1].onclick = function() { pan(0, tileheight); return false; };        points[3].onclick = function() { pan(tilewidth, 0); return false; };        points[4].onclick = function() { pan(-tilewidth, 0); return false; };        points[6].onclick = function() { pan(0, -tileheight); return false; };        points[0].onclick = function() { pan(tilewidth, tileheight); return false; };        points[2].onclick = function() { pan(-tilewidth, tileheight); return false; };        points[5].onclick = function() { pan(tilewidth, -tileheight); return false; };        points[7].onclick = function() { pan(-tilewidth, -tileheight); return false; };    }    var form = document.getElementById('mapForm');    x = parseInt(form.x.value, 10) - 2; /* Bottom left corner X,Y */    y = parseInt(form.y.value, 10) - 2;// Load 6x6 grid of tiles around current 2x2var urls_loaded = {    success: function(o) {        var tiles = eval(o.responseText);	var drag = document.getElementById('drag');	for (var i=0; i<6; i++) {	    for (var j=0; j<6; j++) {	        var id = i+'.'+j;		var xx = x+j;		var yy = y+5-i;		var img = document.getElementById(id);		if (img) {		    if (!img.xx) img.xx = xx;		    if (!img.yy) img.yy = yy;		    if (!img.galleryimg) { img.galleryimg = false; }		    continue;		}		img = document.createElement('input');		img.type = 'image';                img.src = 'http://tilma.mysociety.org/tileserver/10k-full-london/' + tiles[i][j];		img.name = 'tile_' + xx + '.' + yy;		img.id = id;		img.style.position = 'absolute';		img.style.width = tilewidth + 'px';		img.style.height = tileheight + 'px';		img.style.top = ((i-2)*tileheight) + 'px';		img.style.left = ((j-2)*tilewidth) + 'px';		img.galleryimg = false;		img.xx = xx;		img.yy = yy;		img.alt = 'Loading...';		drag.appendChild(img);	    }	}    }}    var url = '/proxy.cgi?x=' + x + ';xm=' + (x+5) + ';y=' + y + ';ym=' + (y+5);    var req = YAHOO.util.Connect.asyncRequest('GET', url, urls_loaded, null);}
meta: 9585	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9585/9475220c2f73e604e77e18c9e5f268ed78560a35/js2.js/buggy/web/js2.js