function h(x){
x.className="trred"
}
function n(x){
x.className="tr"
}

function CurrentLoc(Section) {
	
var currentpageurl = window.location.href;
var URLString = currentpageurl.split("#");

return URLString[Section];
}

	
// Popup window code
function newPopup(url) {
	popupWindow = window.open(
		url,'popUpWindow','height=700,width=1200,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=no')
}

//Event Handler for Rich Text Box
function myOnSubmitEventHandler(editor, xhtml, alt) {
	try {
		if(typeof(document.getElementById(editor).EscapeUnicode) == 'undefined') {
			throw "Error"
		} else {
			document.getElementById(editor).EscapeUnicode = true;
			document.getElementById(xhtml).value = document.getElementById(editor).value;
		}			
	}
	catch(er) {
		document.getElementById(xhtml).value = document.getElementById(alt).value;
	}
}

/*---------------------------------------------------------------------------------
	
	Function: DelRecordConfirm
	Description: Pops up with a confirmation box to confirm Delete Record
	Passed: sDeletePage - ASP Delete Handler Page, iID - ID for record to delete

---------------------------------------------------------------------------------*/
function DelRecordConfirm(strDeletePage, intID) {
	if (confirm("Are you sure you wish to delete this article?")) {
		window.location = '/Scripts/DeleteArticle.asp?ArticleID=' + intID;
	}
	else {
	}

}

function SubNavHighlight(item) {
    document.getElementById(item).className = "subNavSelected";
}
