//on mouse over of label ShowContent
function OnMouseOverOfShowContent()
{
	document.getElementById("lblShowContent").style.textDecoration="underline";
}
//on mouse out of label ShowContent
function OnMouseOutOfShowContent()
{
	document.getElementById("lblShowContent").style.textDecoration="none";
}
//on click of label ShowContent
function OnClickOfShowContent()
{	
 	document.getElementById("divTCDescr").style.display="inline"; 	
	document.getElementById("divTCMasterBtn").style.display="inline";	
}
//function on change of ddlOCPage
function OnChangeOfDDLPageOC()
{	
 	var value;
 	if(document.getElementById("divTCDescr").style.display=="inline")
 	{
		document.getElementById("divTCDescr").style.display="none";	
	}
	if(document.getElementById("divTCMasterBtn").style.display=="inline")
 	{
		document.getElementById("divTCMasterBtn").style.display="none";
	}
	value=document.getElementById("ddlTCPage").value;
	window.location.href="othercontentmaster.php?id="+value;
}
//function to fix selected value in ddlTCPage
function FixSelectedValueInDDLPage(selVal)
{
 	if(selVal!="")
 	{
		for(var i=0;i<document.getElementById("ddlTCPage").options.length;i++)
		{
			if(document.getElementById("ddlTCPage").options[i].value==selVal)
			{
				document.getElementById("ddlTCPage").options[i].selected="selected";
				break;
			}		
		}
	}
	else
	{
		document.getElementById("ddlTCPage").options[0].selected="selected";
	}
}
