﻿if (document.images)
			{
				HomeOn = new Image(); HomeOn.src="images/home-over.jpg"; 
				HomeOff = new Image(); HomeOff.src="images/home-up.jpg";
				
				BioOn = new Image(); BioOn.src="images/bio-over.jpg"; 
				BioOff = new Image(); BioOff.src="images/bio-up.jpg";
				
				InfoOn = new Image(); InfoOn.src="images/info-over.jpg"; 
				InfoOff = new Image(); InfoOff.src="images/info-up.jpg";
				
				
				ContactOn = new Image(); ContactOn.src="images/contact-over.jpg"; 
				ContactOff = new Image(); ContactOff.src="images/contact-up.jpg";
				
				ScheduleOn = new Image(); ScheduleOn.src="images/schedule-over.jpg"; 
				ScheduleOff = new Image(); ScheduleOff.src="images/schedule-up.jpg";
				
				RegistrationOn = new Image(); RegistrationOn.src="images/registration-over.jpg"; 
				RegistrationOff = new Image(); RegistrationOff.src="images/registration-up.jpg";
				
				QuestionsOn = new Image(); QuestionsOn.src="images/questions-over.jpg"; 
				QuestionsOff = new Image(); QuestionsOff.src="images/questions-up.jpg";
				
				ResourcesOn = new Image(); ResourcesOn.src="images/resources-over.jpg"; 
				ResourcesOff = new Image(); ResourcesOff.src="images/resources-up.jpg";
				
				StyleOn = new Image(); StyleOn.src="images/style-over.jpg"; 
				StyleOff = new Image(); StyleOff.src="images/style-up.jpg";
				
				UpcomingOn = new Image(); UpcomingOn.src="images/upcoming-over.jpg"; 
				UpcomingOff = new Image(); UpcomingOff.src="images/upcoming-up.jpg";
				
				TestOn = new Image(); TestOn.src="images/test-over.jpg";
				TestOff = new Image(); TestOff.src = "images/test-up.jpg";

				OnlineTutoringOn = new Image(); OnlineTutoringOn.src = "images/tutoring-over.jpg";
				OnlineTutoringOff = new Image(); OnlineTutoringOff.src = "images/tutoring-up.jpg";
				
				TranslationOn = new Image(); TranslationOn.src="images/translation-over.jpg"; 
				TranslationOff = new Image(); TranslationOff.src="images/translation-up.jpg";
						

			}	
		
		function rollOn (imgName) 
			{
				if (document.images) 
				{
				document[imgName].src = eval(imgName + "On.src");
				}
				
			
			}
		
		function rollOff (imgName) 
			{
				if (document.images) 
				{
				document[imgName].src = eval(imgName + "Off.src");
				}				
	
		
	        }

		
			
function txtValidate(o)
	{
	var str = o.value
	var newstr = str.replace (/\s/g, "")
	var msg = 'Please fill in all required fields (Bold Labels)'
	
	if (newstr == "")
				{
				alert(msg);
				return false;
				}
			
		else
			{
			o.value = newstr
			return true;
			}
	
	
	}
	