
/*
	swaps an image on the page.
	needs 2 arguments:
		image - the id of the image
		src - the new source file
*/
function image_swap(){
/*
	arg1 - image id
	arg2 - image src
*/
	for (i=0;i<arguments.length;i+=2){
//		var theObj = eval("document.images."+arguments[i])
//		theObj.src = arguments[i+1]
		document.images[arguments[i]].src = arguments[i+1]
	}
}

/*
usage: image_swap(image id,image src)
eg. image_swap(<span class="red">'img_test'</span>,<span class="red">'images/sq50_02.gif'</span>)
*/
