// <jsFunction> 
// changeEditDiv - 
// function changes the div where the media_Div placed
// </jsFunction>
function changeEditDiv(divIndex)
{
	document.getElementById("media_Div").style.display = 'none'
	document.getElementById("media_SendMail_Div").style.display = 'none'
	document.getElementById("media_UnProper_Div").style.display = 'none'
	if(document.getElementById("media_UserNotification_Div"))
		document.getElementById("media_UserNotification_Div").style.display = 'none';
			
	switch(parseInt(divIndex))
	{
		case 0:
				document.getElementById("media_Div").style.display = ''
				break;
		case 1:
				document.getElementById("media_SendMail_Div").style.display = ''
				break;
		case 2:
				document.getElementById("media_UnProper_Div").style.display = ''
				break;
		case 4:
		        if(document.getElementById("media_UserNotification_Div"))
				    document.getElementById("media_UserNotification_Div").style.display = ''
				break;
	}
}
// <jsFunction> 
// closeMediaMsgDiv - 
// function closes the Media Msg Div
// </jsFunction>
function closeMediaMsgDiv()
{
	document.getElementById("media_Msg_Div").style.display = 'none';
	changeEditDiv(0)
}
// <jsFunction> 
// chooseUnProperType - 
// function lets the user to choose the UnProper Type
// </jsFunction>
function chooseUnProperType(typeId)
{
	if(typeId==6 || typeId==7)
		document.getElementById("unProperReasonDiv").style.display = ''
	else
		document.getElementById("unProperReasonDiv").style.display = 'none'
}