function changeImageURL(whichImage, path) {
	if (document.getElementById(whichImage)) {
		document.getElementById(whichImage).src = path;
	}
}


/*	----------	ROW HIGHLIGHT FUNCTIONS	----------	*/

function rowOver(whichRow, isEven) {
	if (document.getElementById(whichRow + "_1")) {
		for (x=1; x < 20; x++) {
			if (document.getElementById(whichRow + "_" + x)) document.getElementById(whichRow + "_" + x).style.backgroundColor = "#fae5d9";
		}
	}
}

function rowOut(whichRow, isEven) {
	if (document.getElementById(whichRow + "_1")) {
		for (x=1; x < 20; x++) {
			if (isEven > 0) {
				if (document.getElementById(whichRow + "_" + x)) document.getElementById(whichRow + "_" + x).style.backgroundColor = "#EEEEEE";
			} else {
				if (document.getElementById(whichRow + "_" + x)) document.getElementById(whichRow + "_" + x).style.backgroundColor = "";
			}
		}
	}
}

/*	----------	IMAGE  FUNCTIONS	----------	*/
function testImages(imgArray) {

	for (x=0; x < 10; x++) {
		
		imgVAR =	eval("img" + x);
		
		if (imgVAR.width > 600 && document.getElementById("pic" + x)) {
			
			document.getElementById("pic" + x).src = imgVAR.src;
			
		} else {
			
			for (y=0; y < 100; y++) if (imgVAR.width > 600 && document.getElementById("pic" + x)) document.getElementById("pic" + x).src = imgVAR.src;
			
		}
		
	}
	
}


function enlargeImage(URL) {
	window.open (URL, "Image",	"toolbars=0, scrollbars=0, menubar=0, height=500, width=660");
}
