abouton=new Image(113,26); aboutoff=new Image(113,26);
serviceson=new Image(111,26); servicesoff=new Image(111,26);
pion=new Image(132,26); pioff=new Image(132,26);
contributeon=new Image(126,26); contributeoff=new Image(126,26);
roon=new Image(144,26); rooff=new Image(144,26);
contacton=new Image(124,26); contactoff=new Image(124,26);

//abouton.src="/rcc/fullsite/images/aboutuson.gif"; aboutoff.src="/rcc/fullsite/images/aboutusoff.gif";
//serviceson.src="/rcc/fullsite/images/serviceson.gif"; servicesoff.src="/rcc/fullsite/images/servicesoff.gif";
//pion.src="/rcc/fullsite/images/internshipson.gif"; pioff.src="/rcc/fullsite/images/internshipsoff.gif";
//contributeon.src="/rcc/fullsite/images/contributeon.gif"; contributeoff.src="/rcc/fullsite/images/contributeoff.gif";
//roon.src="/rcc/fullsite/images/roon.gif"; rooff.src="/rcc/fullsite/images/rooff.gif";
//contacton.src="/rcc/fullsite/images/contacton.gif"; contactoff.src="/rcc/fullsite/images/contactoff.gif";

//For the online site:
abouton.src="/images/aboutuson.gif"; aboutoff.src="/images/aboutusoff.gif";
serviceson.src="/images/serviceson.gif"; servicesoff.src="/images/servicesoff.gif";
pion.src="/images/internshipson.gif"; pioff.src="/images/internshipsoff.gif";
contributeon.src="/images/contributeon.gif"; contributeoff.src="/images/contributeoff.gif";
roon.src="/images/roon.gif"; rooff.src="/images/rooff.gif";
contacton.src="/images/contacton.gif"; contactoff.src="/images/contactoff.gif";


function checkSubmitFields()
{
	formArray = document.submitevent.elements;
	
	if (formArray['heading'].value == "")
	{
		alert("You have not entered an event heading.");
		return false;
	}
	if (formArray['location'].value == "")
	{
		alert("You have not entered an event location.");
		return false;
	}
	if (formArray['time'].value == "")
	{
		alert("You have not entered any time information.");
		return false;
	}
	if (formArray['description'].value == "")
	{
		alert("You have not entered a valid event description.");
		return false;
	}
	
	if (confirm("Are you sure that you have entered all information correctly? Please check your entries one final time. If anything is wrong, click Cancel. If all information is correct, click OK."))
	{
		return true;
	}
	else
	{
		return false;
	}
}
