function claimspot(id) {
	document.getElementById('avail'+id).style.display = 'none';
	document.getElementById('claim'+id).style.display = '';
}

function hidespot(id) {
	document.getElementById('claim'+id).style.display = 'none';
	document.getElementById('avail'+id).style.display = '';
}

function changeweek(week) {	
	week = week;
	document.getElementById('weekof'+week).innerHTML = '<br><br><br><font size=3 color=#FF8000><center><b>Loading ...</b></center></font>';
	var url = 'week.php?week='+week;
	var myRandom = parseInt(Math.random()*999999); // cache buster 
	http.open('GET', url + '&rand=' + myRandom);
    http.onreadystatechange = reportResponse;
    http.send(null);
	function reportResponse() {
        if(http.readyState == 4 && http.status == 200) {
			document.getElementById('weekof'+week).innerHTML = http.responseText;
        } 
	}
}









function setClearId(id) {
	document.getElementById('showbrowse'+id).style.display = 'none';
	document.getElementById('clearId'+id).style.display = '';
}

function hideClearId(id) {
	document.getElementById('clearId'+id).style.display = 'none';
	document.getElementById('showbrowse'+id).style.display = '';
}

function repClearId(id,func) { 
document.getElementById('clearId'+id).innerHTML = '<font size=2 color=#00D200><nobr>updating database ...</nobr></font>';
document.getElementById('images'+id).style.display = 'none';
document.getElementById('showlinks'+id).style.display = 'none';
function myNewXMLobject() {
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}if (!xmlhttp){
            alert('There was a problem creating the XMLHttpRequest object');
        }
return xmlhttp;
    }
    // Make the XMLHttpRequest object
    var http = myNewXMLobject();
	// document.getElementById('clearId'+id).innerHTML = '<font size=2 color=#00D200><nobr>updating database ...</nobr></font>';
    // send data
    function sendRequest() {
		// Open PHP script for requests
		var url = 'http://mobsterstats.com/report.php?id='+id+'&func='+func;
		var myRandom = parseInt(Math.random()*999999); // cache buster 
		http.open('GET', url + '&rand=' + myRandom);
		http.onreadystatechange = handleResponse;
		http.send(null);
    }
	function handleResponse() {
        if(http.readyState == 4 && http.status == 200){
            // Text returned FROM PHP script
            var response = http.responseText;
            if(response) {
			document.getElementById('clearId'+id).style.display = 'none';
			document.getElementById('showbrowse'+id).style.display = '';
			document.getElementById('reported'+id).innerHTML = response; 
			}
         }
}
sendRequest('repClearId('+id+', '+func+');');
}









function setBlocked(id) {
	document.getElementById('showbrowse'+id).style.display = 'none';
	document.getElementById('Blocked'+id).style.display = '';
}

function hideBlocked(id) {
	document.getElementById('Blocked'+id).style.display = 'none';
	document.getElementById('showbrowse'+id).style.display = '';
}

function repBlocked(id,func) { 
document.getElementById('Blocked'+id).innerHTML = '<font size=2 color=#00D200><nobr>updating database ...</nobr></font>';
document.getElementById('images'+id).style.display = 'none';
document.getElementById('showlinks'+id).style.display = 'none';
function myNewXMLobject() {
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}if (!xmlhttp){
            alert('There was a problem creating the XMLHttpRequest object');
        }
return xmlhttp;
    }
    // Make the XMLHttpRequest object
    var http = myNewXMLobject();
	// document.getElementById('clearId'+id).innerHTML = '<font size=2 color=#00D200><nobr>updating database ...</nobr></font>';
    // send data
    function sendRequest() {
		// Open PHP script for requests
		var url = 'http://mobsterstats.com/report.php?id='+id+'&func='+func;
		var myRandom = parseInt(Math.random()*999999); // cache buster 
		http.open('GET', url + '&rand=' + myRandom);
		http.onreadystatechange = handleResponse;
		http.send(null);
    }
	function handleResponse() {
        if(http.readyState == 4 && http.status == 200){
            // Text returned FROM PHP script
            var response = http.responseText;
            if(response) {
			document.getElementById('Blocked'+id).style.display = 'none';
			document.getElementById('showbrowse'+id).style.display = '';
			document.getElementById('reported'+id).innerHTML = response; 
			}
         }
}
sendRequest('repBlocked('+id+', '+func+');');
}









function setRepair(id,func) { 
document.getElementById('images'+id).style.display = 'none';
document.getElementById('showlinks'+id).style.display = '';
function myNewXMLobject() {
var xmlhttp=false;
try {
xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
} catch (e) {
try {
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
} catch (E) {
xmlhttp = false;
}
}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp=false;
}
}
if (!xmlhttp && window.createRequest) {
try {
xmlhttp = window.createRequest();
} catch (e) {
xmlhttp=false;
}
}if (!xmlhttp){
            alert('There was a problem creating the XMLHttpRequest object');
        }
return xmlhttp;
    }
    // Make the XMLHttpRequest object
    var http = myNewXMLobject();
	// document.getElementById('clearId'+id).innerHTML = '<font size=2 color=#00D200><nobr>updating database ...</nobr></font>';
    // send data
    function sendRequest() {
		// Open PHP script for requests
		var url = 'http://mobsterstats.com/report.php?id='+id+'&func='+func;
		var myRandom = parseInt(Math.random()*999999); // cache buster 
		http.open('GET', url + '&rand=' + myRandom);
		http.onreadystatechange = handleResponse;
		http.send(null);
    }
	function handleResponse() {
        if(http.readyState == 4 && http.status == 200){
            // Text returned FROM PHP script
            var response = http.responseText;
            if(response) {
			// document.getElementById('reported'+id).innerHTML = response; 
			}
         }
}
sendRequest('setRepair('+id+', '+func+');');
}