
var submitoff = new Image();
var submiton = new Image();
	
submitoff.src = "images/submit.jpg";
submiton.src = "images/submiton.gif";

	
function swapImages(event, image)
{
	//this function handles all mousovers and mouseouts
	//pass in the event(either on or off) and the image name
	//in this case passing in this.name works because 
	//each img tag has the same name as its javascript variable counterpart
	
	if(event=="on")
	{		
		document.all(image).src = eval(image + "on.src");		
	}
	else if(event=="off")
	{
		document.all(image).src = eval(image + "off.src");			
	}
}


