// Populates page body and regulation functions

var xmlhttp =  new XMLHttpRequest();

function submitBrokenLinkToServer(Link,ItemID)
{

	report = confirm("Report Broken Link! " + Link);
		
	if(report)
	{
		xmlhttp.open('POST', 'BrokenLink.php?ItemID=' + ItemID + '&BrokenLink=' + Link, true);
		xmlhttp.send(null);
	}
}

// Utilities

function confirmItemDeletion(URL,lessonIndex)
{
	
	input_box=confirm("Are you sure you want to DELETE item " + lessonIndex + "?");
	if (input_box==true)	
	{
		window.location=URL;
	}

}
