		function changeImage(imgID,img)
		{
			document.getElementById(imgID).src = "/Markslist/images/ext/rba/" + img;
		}


		function rollOnNav(cellID)
		{
			changeCellClass("pre" + cellID,"preOn");
			changeCellClass(cellID,"topNavOn");
			changeCellClass("post" + cellID,"postOn");
		}

		function rollOffNav(cellID)
		{
			changeCellClass("pre" + cellID,"preOff");
			changeCellClass(cellID,"topNavOff");
			changeCellClass("post" + cellID,"postOff");
		}

		function changeCellClass(cellID,newClassName) {

		var cell = document.getElementById(cellID);

		cell.setAttribute("class", newClassName);
		cell.setAttribute("className", newClassName);

		return;
		} 
		
		
		function validateRMotherForm(theForm) 
		{
			var reason = "";
			
			if ( theForm.name.value.length==0 ) 
			{
				reason+="Team Name can't be empty\n"; 
			}
			
			if ( theForm.isRMotherTeam.checked ) 
			{
				
				if ( theForm.momFirstName.value.length== 0 ) 
				{
					reason+="Mother's First Name can't be empty\n"; 	
				}
				
				if ( theForm.momLastName.value.length== 0 ) 
				{
					reason+="Mother's Last Name can't be empty\n"; 	
				}
				
				if ( theForm.momEmail.value.length == 0 ) 
				{
					reason+="Mother's Email can't be empty\n"; 	
				}	
				
				if (   validateMomEmail ( theForm.momEmail ) == 'false' ) 
				{
					reason+="Mother's Email is not valid\n"; 	
				}
				
				
			}
			
		  	if ( reason != "" )
			{
		    	alert( reason );
		    	return false;
		  	}
		  	
			return true; 
		}


		function validateMomEmail( email ) 
		{
			
		   var trueValue='true'; 
		   var falseValue='false'; 
		   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
		   var address = email.value; 
		   if( reg.test(address) == false ) 
		   {
			  return falseValue; 
		   }
		   else 
		   {
			   return trueValue; 
		   }
		   
		}