function changeButton(str,color) {
	if (color==0) {
		document.getElementById('2_' + str).style.background='url(images/blackbtn_02.gif)';
		document.getElementById('1_' + str).src="images/blackbtn_01.gif";
		document.getElementById('3_' + str).src="images/blackbtn_04.gif";
		document.getElementById('4_' + str).style.color = "white";	
		document.body.style.cursor = 'pointer';
	} else {
		document.getElementById('2_' + str).style.background='url(images/blackbtn_02.gif)';
		document.getElementById('1_' + str).src="images/blackbtn_01.gif";
		document.getElementById('3_' + str).src="images/blackbtn_04.gif";
		document.getElementById('4_' + str).style.color = "white";
		document.body.style.cursor = 'pointer';
	}
}
function restoreButton(str,color) {
	if (color==0) {
		document.getElementById('2_' + str).style.background='url(images/blackbtn_02.gif)';
		document.getElementById('1_' + str).src="images/blackbtn_01.gif";
		document.getElementById('3_' + str).src="images/blackbtn_04.gif";
		document.getElementById('4_' + str).style.color = "white";	
		document.body.style.cursor = 'default';	
	} else {
		document.getElementById('2_' + str).style.background='url(images/whitebtn_02.gif)';
		document.getElementById('1_' + str).src="images/whitebtn_01.gif";
		document.getElementById('3_' + str).src="images/whitebtn_04.gif";
		document.getElementById('4_' + str).style.color = "black";
		document.body.style.cursor = 'default';
	}
}
function goToURL(str) {
	document.location.href=str;
}
function swapImg() {
	var today=new Date();
	var hms=""+today.getHours()+today.getMinutes()+today.getSeconds()+today.getMilliseconds();
	document.getElementById('IMGVAR').src = "imgvar.asp?d="+hms;
}
function rollButton(str,str2) {
	document.getElementById(str).src = str2;
}
