//Function: startFilm
//Purpose: Play option on media players
//Parameters: None
//Returns: Nothing

function startFilm()
   {
       document.Player.controls.play();
   }

//Function: stopFilm
//Purpose: Stop option on media players
//Parameters: None
//Returns: Nothing
   
function stopFilm()
   {
       document.Player.controls.stop();
   }

//Function: pauseFilm
//Purpose: Pause option on media players
//Parameters: None
//Returns: Nothing

function pauseFilm()
   {
       document.Player.controls.pause();
   }

function highlight(idName)
{
	if(document.all)
	{
		document.all[idName].style.backgroundColor="#ffffff";
	}
	if(!document.all && document.getElementById)
	{
		document.getElementById(idName).style.backgroundColor="#ffffff";
	}
}

function dim(idName)
{
	if(document.all)
	{
		document.all[idName].style.backgroundColor="maroon";
	}
	if(!document.all && document.getElementById)
	{
		document.getElementById(idName).style.backgroundColor="maroon";
	}
}

//Function: highlightBlock
//Purpose: Highlights menu mouseovers 
//Parameters: idName - name of menu block
//Returns: Nothing

function highlightBlock(idName)
{
	if(document.all)
	{
		document.all[idName].style.backgroundColor="lemonchiffon";
	}
	if(!document.all && document.getElementById)
	{
		document.getElementById(idName).style.backgroundColor="lemonchiffon";
	}
}

//Function: dimBlock
//Purpose: Dims menu mouseovers to original colors
//Parameters: idName - name of menu block
//Returns: Nothing

function dimBlock(idName)
{
	if(document.all)
	{
		document.all[idName].style.backgroundColor="seashell";
	}
	if(!document.all && document.getElementById)
	{
		document.getElementById(idName).style.backgroundColor="seashell";
	}
}

//Function: filterMeta
//Purpose: RemovesMetaCharacters on submission
//Parameters: str - String to be filtered
//Returns: Nothing

function filterMeta(str) {   //Usage:Filter out meta-characters
    str = str.replace(/\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-/g,""); 
    return str;
}
