<!--//
sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
      this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
      this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
  }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function edited(editedarticle){
  var objField = document.forms[0].editedfields
  gotIt = false;  //assume the current article isnt in the list
  if(objField.value.length > 0) {     //if there is a value in the input already
    sTemp = objField.value
    sTemp = sTemp.substring(0, sTemp.lastIndexOf(','))
    arrAlreadyAdded = sTemp.split(',');    //create array of existing values
    for(i=0; i < arrAlreadyAdded.length; i++){
      if(arrAlreadyAdded[i] == editedarticle){
        gotIt = true;  // already got value
        break;        // no need to look any further
      }
    }
  }
  if(!gotIt){
    objField.value += editedarticle + ','     //add value to list
  }
}

function showhidecontent(trID) {
  var oContent = document.all.item(trID);
//    var oimage = document.all.item("img" + trID);

  if (oContent.style.display=="none"){
    oContent.style.display='';
    //oimage.src='images/hide.gif';oimage.alt='Click Here To Collapse This Category';
  }
  else {
    oContent.style.display='none';
    //oimage.src='images/show.gif';oimage.alt='Click Here To Expand This Category';
  }
}

function clearfield(objTextField, strValue){
  if(objTextField.value == strValue){
    objTextField.value = ''
  } else {
    if(objTextField.value == ''){
      objTextField.value = strValue
    }
  }
}

function confirmAction(sURL){
  if(confirm('Are you sure?')){
    location.href=sURL
  }
}


function windowOpen(theURL, Name, popW, popH, scroll, resize) { // V 1.0
  var winleft = (screen.width - popW) / 2;
  var winUp = (screen.height - popH) / 2;
  winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+resize+'';
  Win = window.open(theURL, Name, winProp);
  Win.window.focus();
}

//-->