function cellover(table_cell) {
	priColor = hotColor;
	table_cell.style.backgroundColor = priColor;
}
function cellout(table_cell) {
	priColor = backColor;
	if (table_cell.id == currentCell) priColor = currentColor;

	table_cell.style.backgroundColor = priColor;
}
function hilightDefault() {
document.all[currentCell].bgColor = currentColor;
}

function submitter(table_cell) {
workStr = table_cell.id;
document.subform.id.value = workStr.substring(4,workStr.length);
document.subform.submit();
}

myPopup = '';

var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)

var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function popMenu() {
  if (IE) { 
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  
    tempX = e.pageX
    tempY = e.pageY
  }  
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  

  cFrame.ShowMenu('Add', tempX , tempY, false,'mnuNavB|3',4);
  return true
}

function pfPopup() {
openPopup("index.asp?majM=<%=mode%>&subM=<%=submode%>&pf=1",725,480,1);
}

function openPopup(url,w,h,cfrm) {
var scroll = "no";
if (cfrm == 1)
	scroll = "yes"; 

    var l = screen.width/2 - (w/2);
    var t = screen.height/2 - (h/2);
    var w = w + 20;
    var windowprops = "location=no,scrollbars="+scroll+",menubars=no,toolbars=no,resizable=yes" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

    myPopup = window.open(url,'popupWindow',windowprops);
    if (!myPopup.opener)
         myPopup.opener = self; 
	myPopup.focus();
}

function openVideo(url,w,h) {
    var l = screen.width/2 - (w/2);
    var t = screen.height/2 - (h/2);
    var w = w + 20;
    var windowprops = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;

    myPopup = window.open(url,'popupVideo',windowprops);
    if (!myPopup.opener)
         myPopup.opener = self; 	
}

function imbedNav(one,two) {
	document.subform.id.value = one;
	document.subform.subM.value = two;
	document.subform.submit();
	return false;
}