/**
	function for toggling the 'class' of the div in 'New CWREQ' form
	and also for showing and hiding the div's.
	**/
function toggleDivClass(currentDiv,hideOrShowDivId)
{
	//get the div which is to be shown or hide
	var hideOrShowDiv = document.getElementById(hideOrShowDivId);
	
	//get the style.display attribute value of the given div
	var divDisplay = hideOrShowDiv.style.display;
	
	//if display of div is 'none'
	if(divDisplay == 'none')
	{
		//set the new source for the image
		document.getElementById(currentDiv).className = "embedvid";

		//toggle the display
		hideOrShowDiv.style.display = 'block';
		
	}
	else //if display of div is 'block'
	{
		//set the new source for the image
		document.getElementById(currentDiv).className = "embedvid";
		
		//toggle the display
		hideOrShowDiv.style.display = 'none';
	}
}