
//~~ Default Menu functions ~~//
    function openMenu()
    {
        document.all.hl1.style.display='';
        document.all.hl2.style.display='';
        document.all.hl3.style.display='';
        document.all.hl5.style.display='';
        document.all.hl7.style.display='';
        document.all.hl8.style.display='';
        document.all.hl9.style.display='';
        document.all.hl10.style.display='';
        document.all.hl11.style.display='';
    }
    
    function closeMenu()
    {
        document.all.hl1.style.display='none';
        document.all.hl2.style.display='none';
        document.all.hl3.style.display='none';
        document.all.hl5.style.display='none';
        document.all.hl7.style.display='none';
        document.all.hl8.style.display='none';
        document.all.hl9.style.display='none';
        document.all.hl10.style.display='none';
        document.all.hl11.style.display='none';   
    }
    
function tblCellHighlight(hlCell)
{
	/* Call the clear Menu cells function */	
	tblCellHighlightClr()
	
	if (hlCell == 1) {
		document.all.hl1.bgColor="#ffffff";
	}else if (hlCell == 2) {
		document.all.hl2.bgColor="#ffffff";
	}
	else if (hlCell == 3) {
		document.all.hl3.bgColor="#ffffff";
	}
	/*else if (hlCell == 4) {
		document.all.hl4.bgColor="#ffffff";
	}*/
	else if (hlCell == 5) {
		document.all.hl5.bgColor="#ffffff";
	}
	/*else if (hlCell == 6) {
		document.all.hl6.bgColor="#ffffff";
	}*/
	else if (hlCell == 7) {
		document.all.hl7.bgColor="#ffffff";
	}
	else if (hlCell == 8) {
		document.all.hl8.bgColor="#ffffff";
	}
	else if (hlCell == 9) {
		document.all.hl9.bgColor="#ffffff";
	}
	else if (hlCell == 10) {
		document.all.hl10.bgColor="#ffffff";
	}
	else if (hlCell == 11) {
		document.all.hl11.bgColor="#ffffff";
	}
	
	openMenu()
}

//~~ Clear highlight for default menu ~~//
function tblCellHighlightClr()
{
	document.all.hl1.bgColor="";
	document.all.hl2.bgColor="";
	document.all.hl3.bgColor="";
	/*document.all.hl4.bgColor="";*/
	document.all.hl5.bgColor="";
	/*document.all.hl6.bgColor="";*/
	document.all.hl7.bgColor="";
	document.all.hl8.bgColor="";
	document.all.hl9.bgColor="";
	document.all.hl10.bgColor="";
	document.all.hl11.bgColor="";
	
	closeMenu()
}

//~~ Admin Menu Highlighter ~~//
function tblCellHighlightAdmin(hlCell)
{
	/* Call clear Admin Menu Cells function */
	tblCellHighlightAdminClr()
				
	if (hlCell == 1) {
		document.all.AC1.bgColor="#ffffff";
	}else if (hlCell == 2) {
		document.all.AC2.bgColor="#ffffff";
	}
	/*else if (hlCell == 3) {
		document.all.AC3.bgColor="#ffffff";
	}
	else if (hlCell == 4) {
		document.all.AC4.bgColor="#ffffff";
	}
	else if (hlCell == 5) {
		document.all.AC5.bgColor="#ffffff";
	}	*/
}

function tblCellHighlightAdminClr()
{
	document.all.AC1.bgColor="";
	document.all.AC2.bgColor="";
	/*document.all.AC3.bgColor="";
	document.all.AC4.bgColor="";
	document.all.AC5.bgColor="";*/
}

//~~ Show the Admin Menu ~~//
function showMenu()
{
	document.all.tblMenu.style.visibility="VISIBLE";

}

//~~ Show the Admin Logon Prompt ~~//
function showLogonScreen()
{
	document.all.divAdminValid.style.visibility="VISIBLE";
	document.all.txtAdminUser.focus();
}

