function openHelp()
{
 	myHelp = window.open("Help.asp", "Help", "toolbar=no, status=no, history=no, width=650, height=450,scrollbars=yes");
}
function checkForm()
{
	if (document.frmEdit.txa_Content.value ==  "" || document.frmEdit.txt_Title.value == "")
	{
		alert("Please fill in all form fields");
		return false;
	}
	else
	{
		return true;
	}
}
// Content Manager Applications.
function formatText(theAction)
{
	var myPrompt;
	var theText = document.frmEdit.txa_Content.value
	if (theAction == "bold")
	{
		myPrompt = prompt("Enter the text you wish to appear in bold","")
		if (myPrompt != null)
		{
			theText += "<b>" + myPrompt + "</b>"
		}
	}
	else if (theAction == "italic")
	{
		myPrompt = prompt("Enter the text you wish to appear in italics","")
		if (myPrompt != null)
		{
			theText += "<i>" + myPrompt + "</i>"
		}
	}
	document.frmEdit.txa_Content.value = theText
}

function showLinks()
{
	var x;
	x = window.open("ShowLinks.asp", "Links", "toolbars=no, scrollbars=yes,location=no,history=no,status=yes,height=450,width=400");
}


function browsePics()
{
	var x;
	x = window.open("browsePics.asp", "Pics", "toolbars=no, scrollbars=yes,location=no,history=no,status=yes,height=450,width=400");
}

function checkDelete(theID)
{
	var myConfirm = confirm("Are you sure you wish to delete this \"How to Help\" article?");
	if (myConfirm)
	{
		document.location.href = "deleteme.asp?id=" + theID;
	}
}