	function swap(divNameToShow,divBodyShow,divNameToHide,divBodyHide)
	{
		divShow = document.getElementById(divNameToShow);
		divHide = document.getElementById(divNameToHide);
		divBodyToShow = document.getElementById(divBodyShow);
		divBodyToHide = document.getElementById(divBodyHide);
		
		divShow.style.display = 'block';
		divHide.style.display = 'none';
		
		divBodyToHide.style.display = 'none';
		divBodyToShow.style.display = 'block';
	}
	function mySubmit(name)
	{

		document.forms[0].submit();

	}
function confirmReport(reportId, redirectId, reportPageUrl, memberName)
{
     if(confirm("Bekräfta att du ("+memberName+") vill anmäla inlägget ("+reportId+")"))
     {
         window.location = reportPageUrl+'?reportId=' + reportId + '&redirectId=' + redirectId;
     }
}
function myAlert(strMessage)
{
	alert(strMessage);
} 
function redirectAndAlert(url,strMessage)
{
	alert(strMessage);
	window.location.href = url;
}