

setInterval(makeRequest2, 5000);

var foto2 = false;

function makeRequest2() {

foto2 = false;

if (window.XMLHttpRequest) { // Mozilla, Safari,...
foto2 = new XMLHttpRequest();
if (foto2.overrideMimeType) {
foto2.overrideMimeType('text/html');
// See note below about this line
}
} else if (window.ActiveXObject) { // IE
try {
foto2 = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
foto2 = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}

}

if (!foto2) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        foto2.onreadystatechange = alertContents2;
        foto2.open('post', '/ajax/foto2.lasso', 'true');
        foto2.send(null);
		
		

}

function alertContents2() {

        if (foto2.readyState == 4) {
            if (foto2.status == 200) {
                document.getElementById('foto2').innerHTML = foto2.responseText;
				
            }
        }

    }